2021-09-14 14:31:19 +00:00
|
|
|
name: github pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup mdBook
|
|
|
|
uses: peaceiris/actions-mdbook@v1
|
|
|
|
with:
|
|
|
|
mdbook-version: 'latest'
|
2021-08-24 09:58:07 +00:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: |
|
2022-04-08 10:51:32 +00:00
|
|
|
sudo apt update
|
|
|
|
./tools/install-docs-deps
|
2021-08-24 09:58:07 +00:00
|
|
|
- name: Run mdbook
|
|
|
|
run: |
|
|
|
|
mkdir -p docs/target/
|
|
|
|
mdbook build docs/book/ --dest-dir ../target/
|
|
|
|
- name: Run cargo doc
|
|
|
|
run: |
|
|
|
|
git submodule update --init
|
2022-02-22 01:50:47 +00:00
|
|
|
./tools/cargo-doc --target-dir ./docs/target/html/
|
2021-09-14 14:31:19 +00:00
|
|
|
- name: Deploy
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2022-02-02 04:31:14 +00:00
|
|
|
publish_dir: ./docs/target/html/
|