]> git.lizzy.rs Git - rust.git/blob - .github/workflows/rustdoc.yaml
Merge #3732
[rust.git] / .github / workflows / rustdoc.yaml
1 name: rustdoc
2 on:
3   push:
4    branches:
5    - master
6
7 env:
8   CARGO_INCREMENTAL: 0
9   CARGO_NET_RETRY: 10
10   RUSTFLAGS: -D warnings
11   RUSTUP_MAX_RETRIES: 10
12
13 jobs:
14   rustdoc:
15     runs-on: ubuntu-latest
16
17     steps:
18     - name: Checkout repository
19       uses: actions/checkout@v2
20
21     - name: Install Rust toolchain
22       uses: actions-rs/toolchain@v1
23       with:
24         toolchain: stable
25         profile: minimal
26         override: true
27         components: rustfmt, rust-src
28
29     - name: Build Documentation
30       run: cargo doc --all --no-deps
31
32     - name: Deploy Docs
33       uses: peaceiris/actions-gh-pages@364c31d33bb99327c77b3a5438a83a357a6729ad # v3.4.0
34       with:
35         github_token: ${{ secrets.GITHUB_TOKEN }}
36         publish_branch: gh-pages
37         publish_dir: ./target/doc
38         force_orphan: true