diff options
| author | Árni Dagur <arni@dagur.eu> | 2020-05-24 01:19:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-24 01:19:46 -0400 |
| commit | d5662ab1302a612e52e92714aeca3eae8b8cf165 (patch) | |
| tree | 1e43b24ddb2a8dee7baf464885dac3ee68be5032 /.github/workflows | |
| parent | 94d1d60945ecf2756524beb7345f4faae8ca99af (diff) | |
Deploy 'cargo doc' to Github Pages (#5)
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yml | 26 |
1 files changed, 26 insertions, 0 deletions
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: | |||
| 140 | MATURIN_PASSWORD: ${{ secrets.PYPI }} | 140 | MATURIN_PASSWORD: ${{ secrets.PYPI }} |
| 141 | run: poetry run maturin publish --interpreter python${{matrix.python_version}} --username __token__ | 141 | run: poetry run maturin publish --interpreter python${{matrix.python_version}} --username __token__ |
| 142 | 142 | ||
| 143 | docs-publish: | ||
| 144 | runs-on: ubuntu-latest | ||
| 145 | if: github.ref == 'refs/heads/master' | ||
| 146 | steps: | ||
| 147 | - uses: actions/checkout@v2 | ||
| 148 | with: | ||
| 149 | submodules: true | ||
| 150 | fetch-depth: 0 | ||
| 151 | |||
| 152 | - name: Install latest nightly | ||
| 153 | uses: actions-rs/toolchain@v1 | ||
| 154 | with: | ||
| 155 | toolchain: nightly | ||
| 156 | override: true | ||
| 157 | |||
| 158 | - name: Build documentation | ||
| 159 | uses: actions-rs/cargo@v1 | ||
| 160 | with: | ||
| 161 | command: doc | ||
| 162 | args: --all-features | ||
| 163 | |||
| 164 | - name: Deploy documentation | ||
| 165 | uses: peaceiris/actions-gh-pages@v3 | ||
| 166 | with: | ||
| 167 | github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| 168 | publish_dir: ./target/doc \ No newline at end of file | ||
