From 5692977a5279dd331f24bb37d7f1307521bfbb25 Mon Sep 17 00:00:00 2001 From: Jeb Bearer Date: Wed, 17 Aug 2022 17:58:26 -0700 Subject: [PATCH] Generate docs in CI --- .github/workflows/build.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 25000003..29179754 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,3 +62,16 @@ jobs: cargo test --workspace --release --no-run cargo test --workspace --release --verbose -- -Zunstable-options --report-time --test-threads 2 timeout-minutes: 30 + + - name: Generate Documentation + run: | + cargo doc --no-deps --lib --release + echo '' > target/doc/index.html + + - name: Deploy Documentation + uses: peaceiris/actions-gh-pages@v3 + if: ${{ github.ref == 'refs/heads/main' }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./target/doc + cname: tide-disco.docs.espressosys.com