-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 940 Bytes
/
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
# From https://github.com/rust-lang/mdBook/pull/1248
name: Publish Book to gh-pages
on:
push:
branches:
- main
jobs:
book:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install mdbook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: "0.3.7"
- name: Install Rust
uses: hecrj/setup-rust-action@v1
- name: Update apt
run: sudo apt-get update
- name: Install plantuml
run: sudo apt-get install plantuml
- name: Install mdbook-plantuml
run: cargo install mdbook-plantuml
- name: Generate book from markdown
run: |
cd book
mdbook build
- name: Publish HTML
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/book/