-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (40 loc) · 1.09 KB
/
book.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: Book
on:
push:
branches: ["master"]
paths:
- 'book/**'
- 'utils/**'
- '.github/workflows/book.yml'
jobs:
Book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
- name: Setup mdbook-graphviz
uses: baptiste0928/cargo-install@v2
with:
crate: mdbook-graphviz
git: https://github.com/dylanowen/mdbook-graphviz.git
- name: Setup mdbook-i18n
uses: baptiste0928/cargo-install@v2
with:
crate: mdbook-i18n
git: https://github.com/funkill/mdbook-i18n.git
- name: Build book
run: make book
- name: Build doc
run: make doc
- name: Copy doc
run: cp -r utils/target/doc book/book/i18n/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/book/i18n