From d5662ab1302a612e52e92714aeca3eae8b8cf165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81rni=20Dagur?= Date: Sun, 24 May 2020 01:19:46 -0400 Subject: Deploy 'cargo doc' to Github Pages (#5) --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f2ef74..0efb061 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -140,3 +140,29 @@ jobs: MATURIN_PASSWORD: ${{ secrets.PYPI }} run: poetry run maturin publish --interpreter python${{matrix.python_version}} --username __token__ + docs-publish: + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' + steps: + - uses: actions/checkout@v2 + with: + submodules: true + fetch-depth: 0 + + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + + - name: Build documentation + uses: actions-rs/cargo@v1 + with: + command: doc + args: --all-features + + - name: Deploy documentation + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./target/doc \ No newline at end of file -- cgit v1.2.3