chore(deps): update actions/configure-pages action to v6 (#169) #474
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - v** | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup JS | |
| uses: zotero-plugin-dev/workflows/setup-js@main | |
| - name: Build Packages | |
| run: pnpm build | |
| - name: Upload build result | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: build-result | |
| path: | | |
| **/dist/ | |
| !**/node_modules | |
| test: | |
| needs: | |
| - build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup JS | |
| uses: zotero-plugin-dev/workflows/setup-js@main | |
| - name: Restore Build Result | |
| uses: actions/download-artifact@v7 | |
| with: | |
| name: build-result | |
| - name: Test | |
| run: pnpm test | |
| docs: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - build | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GitHub_TOKEN }} | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| steps: | |
| - name: Setup JS | |
| uses: zotero-plugin-dev/workflows/setup-js@main | |
| with: | |
| fetch-all: 0 | |
| - name: Restore Build Result | |
| uses: actions/download-artifact@v7 | |
| with: | |
| name: build-result | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v6 | |
| - name: Build Documentation | |
| run: pnpm docs:build | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: docs/src/.vitepress/dist | |
| - name: Deploy to GitHub Pages | |
| if: github.event_name == 'push' | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |