-
Notifications
You must be signed in to change notification settings - Fork 27
40 lines (33 loc) · 1 KB
/
deploy.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
name: Deploy to GH Pages
on:
push:
branches: [ master ]
env:
RUST_VERSION: 1.76
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install wasm target
run: rustup target add wasm32-unknown-unknown
- name: Install wasm-bindgen-cli
run: cargo install wasm-bindgen-cli --version=0.2.92
- name: Download Binaryen
run: |
wget https://github.com/WebAssembly/binaryen/releases/download/version_105/binaryen-version_105-x86_64-linux.tar.gz
tar -xzf binaryen-version_105-x86_64-linux.tar.gz
sudo mv binaryen-version_105/bin/* /usr/local/bin/
- name: Build WASM
run: |
sh build-wasm.sh
- name: Install and Build vitepress
run: |
npm install
npm run just-build
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/.vitepress/dist