From b8b6caf8c2bfd92be9326fd85946c78dc33eea7f Mon Sep 17 00:00:00 2001 From: Jon McLean <4429525+jonmclean@users.noreply.github.com> Date: Thu, 31 Aug 2023 09:01:16 -0700 Subject: [PATCH] Release documentation from the release tag instead of main (#448) --- .github/workflows/build-python-pdoc.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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