-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (61 loc) · 1.61 KB
/
book.yml
File metadata and controls
65 lines (61 loc) · 1.61 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Book
on:
push:
branches: [ main ]
paths:
- "book/**"
- "plugins/*/README.md"
- "CHANGELOG.md"
- "CODE_OF_CONDUCT.md"
- "CONTRIBUTING.md"
- "LICENSE.md"
- "README.md"
- "SECURITY.md"
- ".github/workflows/book.yml"
pull_request:
branches: [ main ]
paths:
- "book/**"
- "CHANGELOG.md"
- "CODE_OF_CONDUCT.md"
- "CONTRIBUTING.md"
- "LICENSE.md"
- "README.md"
- "SECURITY.md"
- ".github/workflows/book.yml"
env:
CARGO_TERM_COLOR: always
jobs:
book:
name: Book
runs-on: ubuntu-22.04
steps:
- name: VCS Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: 'latest'
- name: Install preprocessor mdbook-mermaid
uses: taiki-e/cache-cargo-install-action@v2
with:
tool: mdbook-mermaid
- name: Install preprocessor mdbook-preprocessor-graphql-playground
uses: taiki-e/cache-cargo-install-action@v2
with:
tool: mdbook-preprocessor-graphql-playground
- name: Build Book
working-directory: ./book
run: mdbook build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/book
destination_dir: book
cname: std.reactive-graph.io