Skip to content

Commit e191153

Browse files
authored
chore(deps): bump dioxus to 0.7.2 (#52)
* chore(deps): bump dioxus to 0.7.2 * chore(deps): bump nix to 25.11 * ci: split gh-pages into build and deploy
1 parent 9ec2318 commit e191153

6 files changed

Lines changed: 125 additions & 103 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,24 @@ name: GitHub Pages
22

33
env:
44
CARGO_TERM_COLOR: always
5-
DIOXUS_VERSION: 0.7.1
5+
DIOXUS_VERSION: 0.7.2
66

77
on:
88
push:
9-
branches:
10-
- main
9+
branches: [main]
10+
pull_request:
11+
branches: [main]
12+
workflow_dispatch:
1113

1214
permissions: {}
1315

1416
jobs:
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
@@ -36,8 +38,27 @@ jobs:
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

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ dist/
1919
# Nix
2020
result
2121
.pre-commit-config.yaml
22+
.envrc
23+
.direnv/

0 commit comments

Comments
 (0)