Skip to content

Commit

Permalink
add rustdocs to CI and publish to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Zishan Mirza committed May 13, 2024
1 parent faf6a83 commit 2851915
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,24 @@ jobs:
- name: Build
run: cargo build --verbose --release
- name: Test
run: cargo test --verbose
run: cargo test --verbose

docs:
name: docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: pages
uses: actions/configure-pages@v3
- run: cargo doc --no-deps --all-features
- uses: actions/upload-artifact@v2
with:
path: target/doc

deploy:
environment:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: docs
steps:
- uses: actions/deploy-pages@v2

0 comments on commit 2851915

Please sign in to comment.