build(xdr): reproducible xdr.json generation via Makefile #211
Workflow file for this run
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: Docs build | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Install Node (22.x) | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.x" | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile --network-concurrency 1 | |
| - name: Cache Astro build | |
| uses: actions/cache@v4 | |
| with: | |
| path: .astro | |
| key: astro-${{ hashFiles('astro.config.mjs', 'pnpm-lock.yaml') }} | |
| - name: Build reference docs | |
| run: pnpm docs:reference | |
| - name: Build llms.txt bundles | |
| run: pnpm docs:llms | |
| - name: Verify generated docs are up to date | |
| run: git diff --exit-code -- docs/index.md docs/reference/ | |
| - name: Generate robots.txt from config | |
| run: pnpm docs:robots | |
| - name: Generate .htaccess from config (Apache hosts only) | |
| run: pnpm docs:htaccess | |
| - name: Build Starlight site | |
| run: pnpm docs:site |