adding docs generation
This commit is contained in:
parent
8e1d070f85
commit
bc367e7814
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
@ -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
|
Loading…
Reference in New Issue
Block a user