diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index 24050a3..153c210 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -55,7 +55,7 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build - if: github.ref == 'refs/heads/main' + if: github.event_name == 'release' && github.event.action == 'published' steps: - name: Deploy to GitHub Pages id: deployment