diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 301371a..e4bb5a3 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -1,6 +1,8 @@ name: Publish Python 🐍 distribution 📦 to PyPI -on: push +on: + release: + types: [published] jobs: build: @@ -30,7 +32,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