-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (41 loc) · 1.23 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: GitHub Pages
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: wasm32-unknown-unknown
- uses: cargo-bins/cargo-binstall@main
- uses: Swatinem/rust-cache@v1
- name: Setup Node
uses: actions/[email protected]
- name: NPM install
run: npm install -D tailwindcss
- name: Install Dioxus CLI
run: cargo binstall --no-confirm dioxus-cli --locked --force
- name: Install mdbook CLI
run: cargo binstall --no-confirm mdbook --locked --force
- name: Make build script executable
run: chmod +x ./build.sh
- name: Run build script
run: ./build.sh
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
target-folder: .