From d34c19373888e579c66cd2631c38894da7f3cdc8 Mon Sep 17 00:00:00 2001 From: Bousquin Date: Fri, 7 Jul 2023 14:05:44 -0500 Subject: [PATCH] trying with approved action --- .github/workflows/documentation.yaml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index 2c6811a..df89ca6 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -1,5 +1,9 @@ name: Docs -on: [push, pull_request, workflow_dispatch] +on: [push, pull_request] + +# Allows you to run this workflow manually from the Actions tab +workflow_dispatch: + permissions: contents: write jobs: @@ -14,11 +18,10 @@ jobs: - name: Sphinx build run: | sphinx-build doc _build - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + - name: Sphinx to gh-pages Action + uses: uibcdf/action-sphinx-docs-to-gh-pages@v1.1.0-beta with: - publish_branch: gh-pages - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: _build/ - force_orphan: true \ No newline at end of file + dir_docs: docs + sphinxapiopts: '--separate -o . ../' + sphinxapiexclude: '../*setup* ../*.ipynb' + sphinxopts: '' \ No newline at end of file