diff --git a/.github/workflows/docs-python.yml b/.github/workflows/docs-python.yml index d06291a5cb7c..97152a34e903 100644 --- a/.github/workflows/docs-python.yml +++ b/.github/workflows/docs-python.yml @@ -51,7 +51,7 @@ jobs: run: make html - name: Deploy Python docs for latest development version - if: ${{ github.ref_name == 'main' }} + if: github.event_name == 'push' && github.ref_name == 'main' uses: JamesIves/github-pages-deploy-action@v4 with: folder: py-polars/docs/build/html