/ proof-of-concept / toy-instruments
Sign in
proof-of-concept / toy-instruments
Deploy to GitHub Pages via Actions (test, build, deploy on push to main)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012zsyegMfQnzJEzgMiFLzew
Jeremy Magland <jeremy.magland@gmail.com> committed commit 98ff1729ef4c parent d2bfcd7 Browse files
2 changed files+44−0
.github/workflows/pages.ymladded+42−0View file
@@ -0,0 +1,42 @@
1+name: Deploy to GitHub Pages
2+
3+on:
4+ push:
5+ branches: [main]
6+ workflow_dispatch:
7+
8+permissions:
9+ contents: read
10+ pages: write
11+ id-token: write
12+
13+concurrency:
14+ group: pages
15+ cancel-in-progress: true
16+
17+jobs:
18+ build:
19+ runs-on: ubuntu-latest
20+ steps:
21+ - uses: actions/checkout@v4
22+ - uses: actions/setup-node@v4
23+ with:
24+ node-version: 22
25+ cache: npm
26+ - run: npm ci
27+ - run: npm test
28+ - run: npm run build
29+ - uses: actions/configure-pages@v5
30+ - uses: actions/upload-pages-artifact@v3
31+ with:
32+ path: dist
33+
34+ deploy:
35+ needs: build
36+ runs-on: ubuntu-latest
37+ environment:
38+ name: github-pages
39+ url: ${{ steps.deployment.outputs.page_url }}
40+ steps:
41+ - id: deployment
42+ uses: actions/deploy-pages@v4
README.mdmodified+2−0View file
@@ -1,5 +1,7 @@
11 # toy-instruments
22
3+Live: https://magland.github.io/toy-instruments/ (deployed from `main` by `.github/workflows/pages.yml`).
4+
35 A browser gallery of toy physical-model instruments. Pick an instrument, set its geometry, properties and excitation, run the simulation, and get the pickup waveform, a spectrogram, a playable/downloadable `.wav`, and the bead displacements over time. Static site (Vite + TypeScript); the solver runs in a Web Worker.
46
57 ```
↑↓ move↵openescclose