10 RUSTFLAGS: "-D warnings -W unreachable-pub"
11 RUSTUP_MAX_RETRIES: 10
15 if: github.repository == 'rust-analyzer/rust-analyzer'
16 runs-on: ubuntu-latest
19 - name: Checkout repository
20 uses: actions/checkout@v2
22 - name: Install Rust toolchain
23 uses: actions-rs/toolchain@v1
28 components: rustfmt, rust-src
30 - name: Build Documentation
31 run: cargo doc --all --no-deps
34 uses: peaceiris/actions-gh-pages@364c31d33bb99327c77b3a5438a83a357a6729ad # v3.4.0
36 github_token: ${{ secrets.GITHUB_TOKEN }}
37 publish_branch: gh-pages
38 publish_dir: ./target/doc