-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (33 loc) · 1.02 KB
/
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
on:
push:
branches:
- aip-61-adex-v5
name: Deploy docs
jobs:
deploy-docs:
name: Deploy docs on gh-pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
# Use nightly to build the docs with `--cfg docsrs`
toolchain: nightly
profile: minimal
components: rust-docs
- name: Build docs
# Building locally:
# for `--enable-index-page` it is required to pass `-Z unstable-options` to rustdocs
run: RUSTDOCFLAGS="--cfg docsrs -Z unstable-options --enable-index-page" cargo +nightly doc --all-features --no-deps --workspace
- name: Prepare /docs
run: |
rm -rf ./docs
mv target/doc ./docs
- name: Deploy gh-pages
# if: github.ref == 'refs/heads/aip-61-adex-v5'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs