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 # See ci.yml for why numbl is cloned (pinned; no numbl build needed). - name: Check out numbl (sibling dependency) env: NUMBL_REF: 38ce14046d64d03ecf05cb57def53057a6bc64ab run: | git clone --filter=blob:none --no-checkout \ https://github.com/flatironinstitute/numbl.git "$GITHUB_WORKSPACE/../../numbl" git -C "$GITHUB_WORKSPACE/../../numbl" checkout --quiet "$NUMBL_REF" - run: npm ci --ignore-scripts - run: npm run test:node -- --skip-without-gpu - run: npm run build # Pages must already be enabled with "GitHub Actions" as the source; the # workflow token cannot create the site itself (`enablement: true` fails # with "Resource not accessible by integration"). - uses: actions/configure-pages@v5 - uses: actions/upload-pages-artifact@v3 with: path: dist - id: deployment uses: actions/deploy-pages@v4