File tree Expand file tree Collapse file tree 1 file changed +36
-4
lines changed Expand file tree Collapse file tree 1 file changed +36
-4
lines changed Original file line number Diff line number Diff line change 1
- name : github pages
1
+ name : Github Pages
2
2
3
3
on :
4
4
push :
5
5
branches :
6
6
- main
7
+ # Uncomment below for release-based deployment
8
+ # on:
9
+ # release:
10
+ # types:
11
+ # - published
12
+
13
+ permissions :
14
+ contents : write # for committing to gh-pages branch.
7
15
8
16
jobs :
9
- build-deploy :
17
+ build-and- deploy :
10
18
runs-on : ubuntu-latest
11
19
steps :
12
- - name : " Dioxus Deploy"
13
- uses : DioxusLabs/deploy-action@0.1.2
20
+ - uses : actions/checkout@v4
21
+
22
+ - name : Setup Rust
23
+ uses : dtolnay/rust-toolchain@stable
24
+ with :
25
+ targets : wasm32-unknown-unknown
26
+
27
+ - name : Rust Cache
28
+ uses : Swatinem/rust-cache@v2
29
+
30
+ - name : Install Dioxus CLI
31
+ run : cargo install dioxus-cli
32
+
33
+ - name : Build
34
+ run : dx build --release --platform web
35
+ env :
36
+ PUBLIC_URL : " https://mylife.waozi.xyz"
37
+
38
+ - name : Create CNAME file
39
+ run : echo "mylife.waozi.xyz" > dist/CNAME
40
+
41
+ - name : Deploy
42
+ uses : JamesIves/github-pages-deploy-action@v4
43
+ with :
44
+ folder : dist
45
+ single-commit : true
You can’t perform that action at this time.
0 commit comments