Skip to content

Commit c074309

Browse files
committed
undo pages ci changes
1 parent e5fff94 commit c074309

File tree

1 file changed

+36
-4
lines changed

1 file changed

+36
-4
lines changed

.github/workflows/pages.yml

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,45 @@
1-
name: github pages
1+
name: Github Pages
22

33
on:
44
push:
55
branches:
66
- 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.
715

816
jobs:
9-
build-deploy:
17+
build-and-deploy:
1018
runs-on: ubuntu-latest
1119
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

0 commit comments

Comments
 (0)