-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (39 loc) · 1010 Bytes
/
docs.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
name: Docs website
on:
push:
branches:
- main
jobs:
playground:
name: Docs website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- uses: actions-rs/cargo@v1
with:
command: install
args: mdbook-mermaid
- name: Add mermaid assets
run: |
mdbook-mermaid install doc
- name: mdbook
run: mdbook build doc/
- name: Install and Run Zola
run: |
sudo snap install --edge zola
zola -r web/ build -o public/
- name: Add docs to website
run: |
mv ./doc/book/ public/docs
- name: Create CNAME file
run: |
echo 'filamenthdl.com' > ./public/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: public/