Merge pull request #92 from CAD97/CAD97-patch-1 #97
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: rustdoc | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
jobs: | |
cargo-doc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install beta toolchain | |
uses: dtolnay/rust-toolchain@beta | |
- name: Build docs | |
run: cargo doc --no-deps | |
- name: Deploy docs | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ github.token }} | |
publish_dir: ./target/doc | |
force_orphan: true |