diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 75a9531..9fc8a44 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -83,7 +83,8 @@ jobs: needs: - tox if: github.ref == 'refs/heads/main' - # github.event_name == 'release' && github.event.action == 'published' + # This condition ensures that publishing can only happen on push events to the main branch. + # Pull request events are excluded as they don't have the necessary permissions to publish. steps: - name: Check out repository uses: actions/checkout@v4