-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (36 loc) · 904 Bytes
/
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
name: github pages
on:
push:
branches:
- master
- docs
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: baptiste0928/cargo-install@v2
with:
crate: mdbook
version: 0.4.36
- uses: baptiste0928/cargo-install@v2
with:
crate: mdbook-toc
version: 0.14.1
- uses: baptiste0928/cargo-install@v2
with:
crate: mdbook-open-on-gh
version: 2.4.1
- uses: baptiste0928/cargo-install@v2
with:
crate: mdbook-admonish
version: 1.14.0
- name: Build book
run: |
PATH=.cargo/bin:$PATH mdbook build docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book
force_orphan: true