added rustdoc workflow

This commit is contained in:
Jasper Hugo 2021-08-14 12:38:45 +07:00
parent 7190086673
commit 7a46772391
1 changed files with 29 additions and 0 deletions

29
.github/workflows/rustdoc.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Deploy docs to GitHub Pages
on:
push:
branches:
- master
jobs:
release:
name: Deploy Documentation
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v1
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt, rust-src
- name: Build docs
uses: actions-rs/cargo@v1
with:
command: doc
args: --all --no-deps
- name: Deploy docs to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc