/ proof-of-concept / audio-spike-sorting
Sign in
proof-of-concept / audio-spike-sorting
audio-spike-sorting / .github / workflows / deploy.yml
42 lines · 1.2 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 # The job is npm, the node test suite, and a vite build. A cap means a
20 # wedged step releases the runner instead of holding its only job slot.
21 timeout-minutes: 15
22 steps:
23 - uses: actions/checkout@v4
24 - uses: actions/setup-node@v4
25 with:
26 node-version: 24
27 - run: npm ci
28 # The node end-to-end test synthesizes datasets and runs every
29 # built-in algorithm through numbl, so it gates the deploy without
30 # needing a browser or a microphone. The playwright smoke test needs
31 # a system Chrome and stays local.
32 - run: npm test
33 # configure-pages runs before the build on mochi. The page is built
34 # with relative URLs (vite base './'), so the base path it reports is
35 # not needed here, but the ordering is the one that would work if it
36 # were.
37 - uses: actions/configure-pages@v5
38 - run: npm run build
39 - uses: actions/upload-pages-artifact@v3
40 with:
41 path: dist
42 - uses: actions/deploy-pages@v4
↑↓ move↵openescclose