diff --git a/.github/workflows/build-python-pdoc.yml b/.github/workflows/build-python-pdoc.yml index c9f4c6494..dc3b77fc0 100644 --- a/.github/workflows/build-python-pdoc.yml +++ b/.github/workflows/build-python-pdoc.yml @@ -60,18 +60,18 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: docs/python/html destination_dir: docs/python/dev - # Publish to / if we are on the "main" branch and releasing + # Publish to / if we are releasing - name: Publish reference docs by version (main branch) uses: peaceiris/actions-gh-pages@v3 - if: github.event_name == 'release' && github.ref == 'refs/heads/main' + if: github.event_name == 'release' with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: docs/python/html destination_dir: docs/python/${{ env.DISKANN_VERSION }} - # Publish to /latest if we are on the "main" branch and releasing + # Publish to /latest if we are releasing - name: Publish latest reference docs (main branch) uses: peaceiris/actions-gh-pages@v3 - if: github.event_name == 'release' && github.ref == 'refs/heads/main' + if: github.event_name == 'release' with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: docs/python/html