forked from ranile/material-yew
-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (52 loc) · 1.47 KB
/
Copy pathdeploy_website.yml
File metadata and controls
58 lines (52 loc) · 1.47 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Deploy website
on:
push:
branches: [master]
jobs:
deploy_website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-${{ runner.os }}-deploy-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
cargo-${{ runner.os }}-
- name: Install dioxus-cli
uses: taiki-e/install-action@v2
with:
tool: dioxus-cli
- name: Build website
run: |
cd demo
dx build --release
# - name: Install rust (nightly)
# uses: actions-rs/toolchain@v1
# with:
# toolchain: nightly
# target: wasm32-unknown-unknown
# override: true
#
# - name: Build docs
# uses: actions-rs/cargo@v1
# with:
# command: doc
# toolchain: nightly
# args: --no-deps --target wasm32-unknown-unknown --all-features -p material-yew --release
#
# - name: Copy docs to correct location
# run: cp -r target/wasm32-unknown-unknown/doc/ website/dist/docs/
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: demo/dist