name: deploy on: push: branches: [main] workflow_dispatch: permissions: contents: read pages: write id-token: write concurrency: group: pages cancel-in-progress: true jobs: build-deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 24 cache: npm # --omit=optional skips the `webgpu` package (prebuilt Google Dawn), # which only the CLI renderer and the GPU test suite use; the page # build needs nothing from it. The full suite (which also wants a # soundbox checkout and a GPU) runs locally, not here. - run: npm ci --omit=optional # The checked-in instrument files must be exactly the builder's # output; regenerate and refuse to deploy drift. - run: npm run author - run: git diff --exit-code instruments/ - run: npm run build - uses: actions/configure-pages@v5 - uses: actions/upload-pages-artifact@v3 with: path: dist - id: deployment uses: actions/deploy-pages@v4