/ proof-of-concept / instrawave
Sign in
proof-of-concept / instrawave
instrawave / .github / workflows / deploy.yml
40 lines · 1.1 KBBlameHistoryRaw
1name: deploy
2on:
3 push:
4 branches: [main]
5 workflow_dispatch:
7permissions:
8 contents: read
9 pages: write
10 id-token: write
12concurrency:
13 group: pages
14 cancel-in-progress: true
16jobs:
17 build-deploy:
18 runs-on: ubuntu-latest
19 steps:
20 - uses: actions/checkout@v4
21 - uses: actions/setup-node@v4
22 with:
23 node-version: 24
24 cache: npm
25 # --omit=optional skips the `webgpu` package (prebuilt Google Dawn),
26 # which only the CLI renderer and the GPU test suite use; the page
27 # build needs nothing from it. The full suite (which also wants a
28 # soundbox checkout and a GPU) runs locally, not here.
29 - run: npm ci --omit=optional
30 # The checked-in instrument files must be exactly the builder's
31 # output; regenerate and refuse to deploy drift.
32 - run: npm run author
33 - run: git diff --exit-code instruments/
34 - run: npm run build
35 - uses: actions/configure-pages@v5
36 - uses: actions/upload-pages-artifact@v3
37 with:
38 path: dist
39 - id: deployment
40 uses: actions/deploy-pages@v4
↑↓ move↵openescclose