-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.04 KB
/
docs.yaml
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
on:
workflow_dispatch:
push:
branches:
- main
name: Documentation
jobs:
deploy-docs:
concurrency: deploy-docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache
uses: Swatinem/rust-cache@v2
- name: Clean docs dir
run: rm -rf docs
shell: bash
- name: Clean Rust docs dir
run: cargo clean --manifest-path ./Cargo.toml --doc
- name: Build Rust docs
run: cargo doc --manifest-path ./Cargo.toml --all-features --no-deps
- name: Move Rust docs
run: mkdir -p docs && mv target/doc/* docs/.
shell: bash
- name: Configure root page
run: echo '<meta http-equiv="refresh" content="0; url=wave">' > docs/index.html
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs