From d2e2063cb2b5a82709e9c5188602a9fc0f7dadbd Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 3 Jun 2021 00:38:09 +0200 Subject: gh action: add steps to generate and upload doc to gh pages --- .github/workflows/rust.yml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.github') diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 72180e2..c5afa2d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,3 +22,12 @@ jobs: cargo build --verbose --examples - name: Run tests run: cargo test --verbose + - name: Generate doc + run: | + cargo doc --no-deps + echo "" > target/doc/index.html + - name: Upload doc to gh pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./target/doc -- cgit v1.2.3