File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,22 +2,24 @@ name: GitHub Pages
22
33env :
44 CARGO_TERM_COLOR : always
5- DIOXUS_VERSION : 0.7.1
5+ DIOXUS_VERSION : 0.7.2
66
77on :
88 push :
9- branches :
10- - main
9+ branches : [main]
10+ pull_request :
11+ branches : [main]
12+ workflow_dispatch :
1113
1214permissions : {}
1315
1416jobs :
15- build-deploy :
17+ build :
18+ name : Build
1619 runs-on : ubuntu-latest
1720 permissions :
18- # For the push to `gh-pages` branch.
19- contents : write
20- pages : write
21+ contents : read
22+ actions : read
2123 steps :
2224 - name : Checkout repository
2325 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
3638 - name : Build app
3739 run : dx bundle --release
3840
39- - name : Deploy Project 🚀
40- uses : JamesIves/github-pages-deploy-action@4a3abc783e1a24aeb44c16e869ad83caf6b4cc23 # v4
41+ - name : Upload static files as artifact
42+ id : upload-artifact
43+ uses : actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
4144 with :
42- branch : gh-pages
43- folder : dist/public
45+ path : dist/public
46+
47+ deploy :
48+ name : Deploy
49+ permissions :
50+ # For the push to `gh-pages` branch.
51+ id-token : write
52+ contents : write
53+ pages : write
54+ if : github.ref == 'refs/heads/main'
55+ environment :
56+ name : github-pages
57+ url : ${{ steps.deployment.outputs.page_url }}
58+ runs-on : ubuntu-latest
59+ needs : build
60+ steps :
61+ - name : Deploy to GitHub Pages
62+ if : success()
63+ id : deployment
64+ uses : actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
Original file line number Diff line number Diff line change 1919# Nix
2020result
2121.pre-commit-config.yaml
22+ .envrc
23+ .direnv /
You can’t perform that action at this time.
0 commit comments