]> git.lizzy.rs Git - rust.git/blob - .github/workflows/rustdoc.yaml
Auto merge of #12120 - iDawer:ide.sig_help, r=Veykril
[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 -W unreachable-pub"
11   RUSTUP_MAX_RETRIES: 10
12
13 jobs:
14   rustdoc:
15     if: github.repository == 'rust-lang/rust-analyzer'
16     runs-on: ubuntu-latest
17
18     steps:
19     - name: Checkout repository
20       uses: actions/checkout@v3
21
22     - name: Install Rust toolchain
23       uses: actions-rs/toolchain@v1
24       with:
25         toolchain: stable
26         profile: minimal
27         override: true
28         components: rustfmt, rust-src
29
30     - name: Build Documentation
31       run: cargo doc --all --no-deps
32
33     - name: Deploy Docs
34       uses: peaceiris/actions-gh-pages@364c31d33bb99327c77b3a5438a83a357a6729ad # v3.4.0
35       with:
36         github_token: ${{ secrets.GITHUB_TOKEN }}
37         publish_branch: gh-pages
38         publish_dir: ./target/doc
39         force_orphan: true