diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c894dc8..3a4ca2a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,8 +4,8 @@ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI on: - push: - branches: [ "main" ] + release: + types: [ published ] jobs: build: @@ -45,7 +45,6 @@ jobs: publish-to-pypi: name: >- Publish Python 🐍 distribution 📦 to PyPI - if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes needs: - build runs-on: ubuntu-latest