pounder_test/.github/workflows/release-docs.yml

53 lines
1.2 KiB
YAML
Raw Normal View History

2021-07-15 19:28:19 +08:00
name: Release Documentation
on:
workflow_dispatch:
push:
2021-07-16 17:41:14 +08:00
branches:
- master
2021-07-15 19:28:19 +08:00
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
2021-08-09 21:21:42 +08:00
- uses: Swatinem/rust-cache@v1
- name: Install Linkcheck
uses: actions-rs/cargo@v1
with:
command: install
2021-08-09 21:26:24 +08:00
args: mdbook-linkcheck
2021-08-09 21:21:42 +08:00
- uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '0.4.12'
2021-07-15 19:28:19 +08:00
- uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps -p miniconf -p ad9959 -p stabilizer -p dsp
2021-08-09 21:26:24 +08:00
- name: Build Book
working-directory: book
2021-08-09 22:26:27 +08:00
run: |
2021-08-09 21:21:42 +08:00
mv ../target/thumbv7em-none-eabihf/doc src/firmware
mdbook build
2021-07-15 19:28:19 +08:00
- uses: peaceiris/actions-gh-pages@v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
2021-08-09 22:54:19 +08:00
publish_dir: book/stabilizer-manual/html
2021-07-15 19:28:19 +08:00
enable_jekyll: true
publish_branch: pages
force_orphan: true