diff --git a/.github/workflows/pypi-package.yml b/.github/workflows/pypi-package.yml index 104b70a..6dd4931 100644 --- a/.github/workflows/pypi-package.yml +++ b/.github/workflows/pypi-package.yml @@ -5,10 +5,6 @@ on: branches: - main - dev - pull_request: - branches: - - main - - dev release: types: - published @@ -42,7 +38,7 @@ jobs: # Publish to TestPyPI on every `pull_request` to `dev` branch publish-to-test-pypi: name: Publish 📦 to TestPyPI - if: github.event_name == 'pull_request' && github.ref == 'refs/heads/dev' + if: github.event_name == 'push' && github.ref == 'refs/heads/dev' needs: - build runs-on: ubuntu-latest @@ -63,7 +59,7 @@ jobs: # Publish to PyPI on every `pull_request` to `main` branch publish-to-pypi: name: Publish 📦 to PyPI - if: github.event_name == 'pull_request' && github.ref == 'refs/heads/main' + if: github.event_name == 'push' && github.ref == 'refs/heads/main' needs: - build runs-on: ubuntu-latest