-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (39 loc) · 1.02 KB
/
deploy_web_demo.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Deploy web demo
on:
release:
types: ["published"]
permissions:
contents: write # for committing to gh-pages branch
concurrency:
group: "pages"
cancel-in-progress: false
env:
RUSTFLAGS: --cfg=web_sys_unstable_apis -D warnings
RUSTDOCFLAGS: -D warnings
jobs:
# Single deploy job since we're just deploying
deploy:
name: Deploy web demo
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
target: wasm32-unknown-unknown
toolchain: 1.76.0
override: true
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "web-demo-"
- name: "Install wasmopt / binaryen"
run: |
sudo apt-get update && sudo apt-get install binaryen
- run: |
scripts/build_web.sh
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: web_demo
single-commit: true