diff options
| -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 | ||
