Skip to content

Commit 71b0e16

Browse files
committed
100% rust
1 parent a76497e commit 71b0e16

File tree

6 files changed

+8
-2455
lines changed

6 files changed

+8
-2455
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,20 @@ jobs:
2222
target: wasm32-unknown-unknown
2323
- name: Build WASM
2424
run: cargo build --release --target wasm32-unknown-unknown
25+
- name: Make pages folder
26+
run: mkdir target/pages
2527
- name: Move WASM to pages folder
26-
run: mv target/wasm32-unknown-unknown/release/hodgkin-huxley-playground.wasm pages/hodgkin-huxley-playground.wasm
28+
run: mv target/wasm32-unknown-unknown/release/hodgkin-huxley-playground.wasm target/pages/hodgkin-huxley-playground.wasm
29+
- name: Move to pages folder
30+
run: cd target/pages
31+
- name: Clone HTML/JS boilerplate
32+
run: for file in index.html quad-url.js sapp_jsutils.js gl.js; do; wget https://github.com/not-fl3/egui-miniquad/raw/refs/heads/master/docs/$file; done
2733
- name: Setup Pages
2834
uses: actions/configure-pages@v4
2935
- name: Upload artifacts
3036
uses: actions/upload-pages-artifact@v3
3137
with:
32-
path: "pages"
38+
path: "."
3339
- name: Deploy to GitHub Pages
3440
id: deployment
3541
uses: actions/deploy-pages@v4

.gitignore

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

0 commit comments

Comments
 (0)