-
Notifications
You must be signed in to change notification settings - Fork 27
58 lines (48 loc) · 1.3 KB
/
release-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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Release Documentation
on:
workflow_dispatch:
push:
branches:
- main
jobs:
release-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: thumbv7em-none-eabihf
override: true
- uses: Swatinem/rust-cache@v1
- name: Install Linkcheck
uses: actions-rs/cargo@v1
with:
command: install
args: mdbook-linkcheck
- name: Install ToC
uses: actions-rs/cargo@v1
with:
command: install
args: mdbook-toc
- uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '0.4.12'
- uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps -p miniconf -p ad9959 -p stabilizer -p idsp
- name: Build Book
working-directory: book
run: |
mv ../target/thumbv7em-none-eabihf/doc src/firmware
mdbook build
- uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: book/stabilizer-manual/html
enable_jekyll: true
publish_branch: pages
force_orphan: true