-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 948 Bytes
/
gh-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: GitHub Pages
env:
CARGO_TERM_COLOR: always
DIOXUS_VERSION: 0.6.0
on:
push:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
# For the push to `gh-pages` branch.
contents: write
pages: write
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- name: Setup cargo-binstall
uses: cargo-bins/[email protected]
- name: Install Dioxus
run: cargo binstall dioxus-cli@${{ env.DIOXUS_VERSION }} --force --no-confirm
- name: Build app
run: dx build --release
- name: Copy output
run: cp -r target/dx/stoic-quotes/release/web/public docs
- name: Deploy Project 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist