]> git.lizzy.rs Git - rust.git/blob - .github/workflows/rustdoc.yaml
Merge #3505
[rust.git] / .github / workflows / rustdoc.yaml
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@v2
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       run: cargo doc --all --no-deps
28
29     - name: Deploy Docs
30       uses: peaceiris/actions-gh-pages@364c31d33bb99327c77b3a5438a83a357a6729ad # v3.4.0
31       with:
32         github_token: ${{ secrets.GITHUB_TOKEN }}
33         publish_branch: gh-pages
34         publish_dir: ./target/doc
35         force_orphan: true