-
Notifications
You must be signed in to change notification settings - Fork 15
51 lines (40 loc) · 1.13 KB
/
docs.yml
File metadata and controls
51 lines (40 loc) · 1.13 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
name: Deploy Rust Docs to GitHub Pages
on:
workflow_call:
workflow_dispatch:
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
docs:
runs-on: ubuntu-24.04-arm
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.2
with:
ref: ${{ github.event.inputs.ref }}
- name: Setup environment
uses: ./.github/actions/setup-pnpm
- name: Install nightly Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1.16.1
with:
toolchain: nightly
- name: Generate documentation
run: pnpm run docs
env:
RUSTDOCFLAGS: --enable-index-page -Zunstable-options
- name: Setup Pages
uses: actions/configure-pages@v6
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
path: ${{ github.workspace }}/target/doc
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5