CI: Add workflow to render latest documentation

This commit is contained in:
Jack Grigg 2021-07-09 20:57:23 +01:00
parent 3cab105c9c
commit 6eb3557ea3
1 changed files with 33 additions and 0 deletions

33
.github/workflows/book.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: librustzcash documentation
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Build latest rustdocs
uses: actions-rs/cargo@v1
with:
command: rustdoc
args: --workspace --all-features -- --cfg docsrs
- name: Move latest rustdocs into book
run: |
mkdir -p ./book/book/rustdoc
mv ./target/doc ./book/book/rustdoc/latest
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/book