adding docs generation

This commit is contained in:
Andy Pack 2024-01-30 21:58:09 +00:00
parent 8e1d070f85
commit bc367e7814
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7

View File

@ -31,4 +31,26 @@ jobs:
- name: Cargo Test
uses: actions-rs/cargo@v1
with:
command: test
command: test
doc:
runs-on: ubuntu-latest
needs: [ build ] # for ignoring bad builds
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build Docs
run: cargo doc --no-deps --document-private-items
- name: Deploy To Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc