diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml new file mode 100644 index 00000000..72351e5f --- /dev/null +++ b/.github/workflows/deploy-pages.yml @@ -0,0 +1,15 @@ +name: Deploy documentation + +on: + release: + types: [published] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +jobs: + deploy: + uses: react-component/rc-test/.github/workflows/deploy-pages.yml@main diff --git a/.github/workflows/site-deploy.yml b/.github/workflows/site-deploy.yml deleted file mode 100644 index c5de8300..00000000 --- a/.github/workflows/site-deploy.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Deploy website -on: - push: - tags: - - '*' - workflow_dispatch: - -permissions: - contents: write - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v7 - with: - persist-credentials: false - - - name: setup node - uses: actions/setup-node@v6 - with: - node-version: 20 - - - name: create package-lock.json - run: npm i --package-lock-only --ignore-scripts - - - name: Install dependencies - run: npm ci - - - name: build Docs - run: npm run build - - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@329bcc8f12caed2cefe5a5b80781499a6f3b361b - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs-dist - force_orphan: true - user_name: 'github-actions[bot]' - user_email: 'github-actions[bot]@users.noreply.github.com'