-
-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (37 loc) · 910 Bytes
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: rustdoc
on:
push:
branches:
- dev
paths-ignore:
- "**.md"
- LICENSE
- .github/FUNDING.yml
- .gitignore
jobs:
rustdoc:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
CARGO_INCREMENTAL: 0
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: rust-src
- name: Cache cargo output
uses: Swatinem/rust-cache@v1
- name: Build Documentation
run: cargo doc --features amalgation,nightly -Zrustdoc-map
env:
RUSTDOCFLAGS: --cfg docsrs
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./target/doc
force_orphan: true