File tree Expand file tree Collapse file tree 6 files changed +2484
-0
lines changed Expand file tree Collapse file tree 6 files changed +2484
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy
2+
3+ permissions :
4+ contents : read
5+ pages : write
6+ id-token : write
7+
8+ on :
9+ workflow_dispatch :
10+ push :
11+
12+ jobs :
13+ deploy :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+ - name : Build WASM
19+ run : cargo build --release --target wasm32-unknown-unknown
20+ - name : Move WASM to pages folder
21+ run : mv target/wasm32-unknown-unknown/release/hodgkin-huxley-playground.wasm pages/hodgkin-huxley-playground.wasm
22+ - name : Setup Pages
23+ uses : actions/configure-pages@v4
24+ - name : Upload artifacts
25+ uses : actions/upload-pages-artifact@v3
26+ with :
27+ path : " pages"
28+ - name : Deploy to GitHub Pages
29+ id : deployment
30+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1+ /target
2+ /pages /* .wasm
You can’t perform that action at this time.
0 commit comments