/ simulated_instruments / bass
Sign in
simulated_instruments / bass
bass / .github / workflows / deploy.yml
69 lines · 1.8 KBBlameHistoryRaw
1name: Deploy to Pages
3# Builds webapp/ and publishes it as this repository's site.
4#
5# Two notes on the vault:
6# - there is no cache service, so setup-node runs without `cache: npm`;
7# - a mochi site is served at /<collection>/<repo>/site/ or at the root of an
8# origin of its own. The Vite build uses a relative base (`base: './'`), so
9# it works at either without being told the deploy path, and configure-pages
10# is therefore only here for parity with the deploy step.
12on:
13 push:
14 branches: [main]
15 workflow_dispatch:
17permissions:
18 contents: read
19 pages: write
20 id-token: write
22concurrency:
23 group: pages
24 cancel-in-progress: false
26jobs:
27 build:
28 runs-on: ubuntu-latest
29 steps:
30 - uses: actions/checkout@v4
32 - uses: actions/setup-node@v4
33 with:
34 node-version: 22
36 - name: Install
37 working-directory: webapp
38 run: npm ci
40 # Runs matlab/bass_validate.m through numbl: the closed-form stiff
41 # string, the coupled eigensolve identities, the veering scaling,
42 # reproducibility of the seeded walking line, and the pinned
43 # end-to-end diagnostics. Fails the build on any mismatch.
44 - name: Validate the model
45 working-directory: webapp
46 run: npm run selftest
48 - name: Build
49 working-directory: webapp
50 run: npm run build
52 - name: Setup Pages
53 uses: actions/configure-pages@v5
55 - name: Upload artifact
56 uses: actions/upload-pages-artifact@v3
57 with:
58 path: webapp/dist
60 deploy:
61 needs: build
62 runs-on: ubuntu-latest
63 environment:
64 name: github-pages
65 url: ${{ steps.deployment.outputs.page_url }}
66 steps:
67 - name: Deploy to Pages
68 id: deployment
69 uses: actions/deploy-pages@v4
↑↓ move↵openescclose