2020-12-27 18:36:12 -06:00
|
|
|
name: Documentation
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Deploy Documentation
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repository
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Setup Rust
|
|
|
|
run: |
|
|
|
|
rustup update nightly --no-self-update
|
|
|
|
rustup default nightly
|
|
|
|
|
|
|
|
- name: Build Documentation
|
|
|
|
run: cargo doc --no-deps
|
|
|
|
|
|
|
|
- name: Deploy Documentation
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
2020-12-28 22:48:18 -06:00
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2020-12-27 18:36:12 -06:00
|
|
|
publish_branch: gh-pages
|
|
|
|
publish_dir: ./target/doc
|