File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ - name : Checkout
22+ uses : actions/checkout@v4
23+ - name : Setup Rust
24+ uses : dtolnay/rust-toolchain@stable
25+ with :
26+ targets : wasm32-unknown-unknown
27+ - name : Setup Rust cache
28+ uses : Swatinem/rust-cache@v2
29+ - name : Setup Pages
30+ uses : actions/configure-pages@v5
31+ - name : Install Dioxus CLI
32+ uses : taiki-e/install-action@v2
33+ with :
34+ tool : dioxus-cli
35+ - name : Bundle web
36+ run : |
37+ dx bundle --web --release --out-dir dist
38+ if [ -d dist/public ]; then
39+ mv dist/public/* dist
40+ rm -rf dist/public
41+ fi
42+ cp dist/index.html dist/404.html
43+ - name : Upload artifact
44+ uses : actions/upload-pages-artifact@v4
45+ with :
46+ path : dist
47+
48+ deploy :
49+ needs : build
50+ runs-on : ubuntu-latest
51+ environment :
52+ name : github-pages
53+ url : ${{ steps.deployment.outputs.page_url }}
54+ steps :
55+ - id : deployment
56+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 11[application ]
2+ out_dir = " dist"
23
34[web .app ]
45
56# HTML title tag content
67title = " Nonogram Solver"
8+ base_path = " /"
79
810# include `assets` in web platform
911[web .resource ]
You can’t perform that action at this time.
0 commit comments