rust/.github/workflows/rustdoc.yaml

40 lines
814 B
YAML
Raw Normal View History

2019-11-18 09:13:31 +01:00
name: rustdoc
on:
push:
branches:
2020-03-04 17:01:38 +01:00
- master
2019-11-18 09:13:31 +01:00
jobs:
rustdoc:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
CARGO_INCREMENTAL: 0
steps:
2020-03-04 17:01:38 +01:00
- name: Checkout repository
uses: actions/checkout@v1
2019-11-18 09:13:31 +01:00
2020-03-04 17:01:38 +01:00
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt, rust-src
2019-11-18 09:13:31 +01:00
2020-03-04 17:01:38 +01:00
- name: Build Documentation
uses: actions-rs/cargo@v1
with:
command: doc
args: --all --no-deps
2019-11-18 09:13:31 +01:00
2020-03-04 17:01:38 +01:00
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v2.6.0-rc0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./target/doc
with:
forceOrphan: true