File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 workflow_dispatch :
88
99permissions :
10- contents : write
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ concurrency :
15+ group : " pages"
16+ cancel-in-progress : false
1117
1218jobs :
13- build-and-deploy :
19+ build :
1420 runs-on : ubuntu-latest
1521 steps :
1622 - name : Checkout Repository
@@ -21,29 +27,27 @@ jobs:
2127 with :
2228 targets : wasm32-unknown-unknown
2329
24- - name : Cache Cargo Dependencies
25- uses : actions/cache@v4
30+ - name : Install Trunk
31+ uses : jetli/trunk-action@v0.5.0
2632 with :
27- path : |
28- ~/.cargo/bin/
29- ~/.cargo/registry/index/
30- ~/.cargo/registry/cache/
31- ~/.cargo/git/db/
32- target/
33- key : ${{ runner.os }}-cargo-wasm-${{ hashFiles('**/Cargo.lock') }}
34-
35- - name : Download & Install Trunk
36- run : |
37- wget -qO- https://github.com/trunk-rs/trunk/releases/download/v0.20.3/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf - -C /usr/local/bin
38- trunk --version
33+ version : ' latest'
3934
4035 - name : Build WebAssembly Release Bundle
4136 run : |
4237 trunk build --release --public-url "/AlgoBuddy/"
4338
44- - name : Deploy to GitHub Pages
45- uses : PeaceIris/ actions-gh- pages@v3
39+ - name : Upload Artifacts
40+ uses : actions/upload- pages-artifact @v3
4641 with :
47- github_token : ${{ secrets.GITHUB_TOKEN }}
48- publish_dir : ./dist
49- publish_branch : gh-pages
42+ path : ./dist
43+
44+ deploy :
45+ environment :
46+ name : github-pages
47+ url : ${{ steps.deployment.outputs.page_url }}
48+ runs-on : ubuntu-latest
49+ needs : build
50+ steps :
51+ - name : Deploy to GitHub Pages
52+ id : deployment
53+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments