Prepare 0.17.0 release #118
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
docs: | |
name: Generate master API documentation | |
runs-on: ubuntu-latest | |
env: | |
RUSTDOCFLAGS: --cfg=nightly | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install nightly toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly | |
components: rustfmt | |
- name: Test | |
run: cargo test --doc --all-features | |
- name: Generate | |
run: cargo doc --all --all-features | |
- name: Publish | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
force_orphan: true | |
publish_branch: gh-pages | |
publish_dir: ./target/doc |