diff options
Diffstat (limited to '.github/workflows/rustdoc.yaml')
-rw-r--r-- | .github/workflows/rustdoc.yaml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/rustdoc.yaml b/.github/workflows/rustdoc.yaml new file mode 100644 index 000000000..caa1dcc30 --- /dev/null +++ b/.github/workflows/rustdoc.yaml | |||
@@ -0,0 +1,39 @@ | |||
1 | name: rustdoc | ||
2 | on: | ||
3 | push: | ||
4 | branches: | ||
5 | - master | ||
6 | |||
7 | jobs: | ||
8 | rustdoc: | ||
9 | runs-on: ubuntu-latest | ||
10 | env: | ||
11 | RUSTFLAGS: -D warnings | ||
12 | CARGO_INCREMENTAL: 0 | ||
13 | |||
14 | steps: | ||
15 | - name: Checkout repository | ||
16 | uses: actions/checkout@v1 | ||
17 | |||
18 | - name: Install Rust toolchain | ||
19 | uses: actions-rs/toolchain@v1 | ||
20 | with: | ||
21 | toolchain: stable | ||
22 | profile: minimal | ||
23 | override: true | ||
24 | components: rustfmt, rust-src | ||
25 | |||
26 | - name: Build Documentation | ||
27 | uses: actions-rs/cargo@v1 | ||
28 | with: | ||
29 | command: doc | ||
30 | args: --all --no-deps | ||
31 | |||
32 | - name: Deploy Docs | ||
33 | uses: peaceiris/[email protected] | ||
34 | env: | ||
35 | ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} | ||
36 | PUBLISH_BRANCH: gh-pages | ||
37 | PUBLISH_DIR: ./target/doc | ||
38 | with: | ||
39 | forceOrphan: true | ||