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 environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 24 cache: npm # --omit=optional skips the Dawn (webgpu) binary, which is only for the # experimental command-line engine and needs a recent glibc. - run: npm ci --omit=optional # Discretization tests run on the CPU (no GPU needed). - run: npm test # Type check, Vite build, and a copy of docs/gallery into dist/docs/gallery. - 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