diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6adef91..5dd5a33 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,8 @@ name: Publish Python distributions to PyPI on: - push: - branches: - - master + release: + types: [published] jobs: build-n-publish: @@ -34,4 +33,4 @@ jobs: if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: - password: ${{ secrets.pypi_password }} \ No newline at end of file + password: ${{ secrets.pypi_password }}