-
Notifications
You must be signed in to change notification settings - Fork 85
52 lines (43 loc) · 1.24 KB
/
docs.yml
File metadata and controls
52 lines (43 loc) · 1.24 KB
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
44
45
46
47
48
49
50
51
52
# Generates and deploys crate documentation to GitHub Pages
name: docs
on:
push:
branches:
- next
paths:
- "**.rs"
- "Cargo.toml"
- "Cargo.lock"
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
docs:
name: Generate and deploy crate documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Cleanup large tools for build space
uses: ./.github/actions/cleanup-runner
- name: Install LLVM/Clang
uses: ./.github/actions/install-llvm
with:
version: "17"
- name: Generate documentation
run: |
rustup update --no-self-update
rustup default stable
make doc
- name: Deploy documentation
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # pin@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
destination_dir: docs