Merge pull request #413 from str4d/ci-rustdoc

CI: Add workflow to render latest documentation
This commit is contained in:
str4d 2021-07-09 20:59:33 +01:00 committed by GitHub
commit 7c897d52cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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