File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main # Change this if your default branch is different
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ jobs :
14+ build :
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
20+
21+ - name : Install Rust
22+ uses : dtolnay/rust-toolchain@stable
23+ with :
24+ target : wasm32-unknown-unknown
25+
26+ - name : Install wasm-pack
27+ run : cargo install wasm-pack
28+
29+ - name : Build with wasm-pack
30+ run : wasm-pack build --target web --release --out-dir web/pkg
31+
32+ - name : Setup GitHub Pages
33+ uses : actions/configure-pages@v4
34+
35+ - name : Upload artifact
36+ uses : actions/upload-pages-artifact@v3
37+ with :
38+ path : web # The directory to deploy
39+
40+ deploy :
41+ needs : build
42+ runs-on : ubuntu-latest
43+ environment :
44+ name : github-pages
45+ url : ${{ steps.deployment.outputs.page_url }}
46+
47+ steps :
48+ - name : Deploy to GitHub Pages
49+ id : deployment
50+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments