diff --git a/.github/workflows/build-docs.yaml b/.github/workflows/build-docs.yaml index fa27c838a..4e3661acc 100644 --- a/.github/workflows/build-docs.yaml +++ b/.github/workflows/build-docs.yaml @@ -22,9 +22,9 @@ jobs: sphinx-build docs/source docs/build - name: Deploy uses: peaceiris/actions-gh-pages@v3 - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + if: ${{ github.event_name == 'push' }} with: publish_branch: gh-pages github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: docs/build/html/ + publish_dir: ./docs/build/html force_orphan: true