Skip to content

Commit c90bbe6

Browse files
committed
automagic github pages deploy
1 parent 8afd4b2 commit c90bbe6

File tree

6 files changed

+2484
-0
lines changed

6 files changed

+2484
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target
2+
/pages/*.wasm

0 commit comments

Comments
 (0)