-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (32 loc) · 817 Bytes
/
Copy pathcargo-doc.yml
File metadata and controls
36 lines (32 loc) · 817 Bytes
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
name: Cargo Doc
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
name: Checkout
with:
submodules: recursive
- name: Install latest nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Generate documentation
uses: actions-rs/cargo@v1
with:
command: doc
args: --all-features
env:
RUSTDOCFLAGS: -Z unstable-options --enable-index-page
- name: Deploy
uses: JamesIves/github-pages-deploy-action@2.0.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_BRANCH: main
BRANCH: gh-pages
FOLDER: target/doc