From 2851915dd0fb0b1100a3b83a4ee3c0a668aded57 Mon Sep 17 00:00:00 2001 From: Zishan Mirza Date: Mon, 13 May 2024 20:15:17 +0200 Subject: [PATCH] add rustdocs to CI and publish to github pages --- .github/workflows/build.yaml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b36fcbc..4af6184 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -27,4 +27,24 @@ jobs: - name: Build run: cargo build --verbose --release - name: Test - run: cargo test --verbose \ No newline at end of file + 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 \ No newline at end of file