chore(deps): bump actions/checkout from 6.0.3 to 7.0.0 #162
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
| # Builds the Astro/Starlight site (with the griffe-generated API reference) | |
| # on PRs that touch it, and deploys it to GitHub Pages on pushes to stage. | |
| # Not a required check: path-filtered checks can't be required (a skipped | |
| # check would block merging). See ADR 0011. | |
| # | |
| # Future effaced.dev switch: set SITE_URL / BASE_PATH on the build step and | |
| # swap the deploy job — astro.config.mjs reads both from the environment. | |
| name: Docs | |
| on: | |
| pull_request: | |
| branches: [stage, main] | |
| paths: | |
| - "site/**" | |
| - "scripts/gen_api_docs.py" | |
| - "packages/*/src/**" | |
| - ".github/workflows/docs.yml" | |
| push: | |
| branches: [stage] | |
| paths: | |
| - "site/**" | |
| - "scripts/gen_api_docs.py" | |
| - "packages/*/src/**" | |
| - ".github/workflows/docs.yml" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: docs-${{ github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| build: | |
| name: Build site | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 | |
| with: | |
| enable-cache: true | |
| # griffe only — the generator is pure static analysis and never imports | |
| # the packages, so the workspace itself is not installed. | |
| - name: Generate API reference | |
| run: | | |
| uv sync --locked --only-group docs | |
| uv run --no-sync python scripts/gen_api_docs.py | |
| - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 | |
| with: | |
| package_json_file: site/package.json | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| cache-dependency-path: site/pnpm-lock.yaml | |
| - name: Install site dependencies | |
| working-directory: site | |
| run: pnpm install --frozen-lockfile | |
| - name: Build site | |
| working-directory: site | |
| env: | |
| ASTRO_TELEMETRY_DISABLED: "1" | |
| run: pnpm build | |
| - name: Upload Pages artifact | |
| if: github.event_name == 'push' | |
| uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 | |
| with: | |
| path: site/dist | |
| deploy: | |
| name: Deploy to GitHub Pages | |
| if: github.event_name == 'push' | |
| needs: build | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| concurrency: | |
| group: pages-deploy | |
| cancel-in-progress: false | |
| steps: | |
| - name: Deploy | |
| id: deployment | |
| uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0 |