diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index 7e840d1..8fad896 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -13,14 +13,15 @@ jobs: pip install sphinx python -m pip install sphinx-autoapi python -m pip install sphinx_rtd_theme + python -m pip install tox tox-gh-actions - name: Sphinx build run: | - sphinx-build doc _build + tox -e docs - name: Deploy uses: peaceiris/actions-gh-pages@f09b4d7e2f12f433806a6273c6b0025df1f7859d if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} with: publish_branch: gh-pages github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: _build/ + publish_dir: .tox/docs/tmp/html/ force_orphan: true