diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index b8dd192..7868cdc 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -2,7 +2,7 @@ name: Publish package on: release: - types: [created] + types: [published] jobs: pypi-publish: @@ -28,7 +28,6 @@ jobs: python -m build --sdist --wheel --outdir dist/ . - name: Publish to PyPI - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.PYPI_API_TOKEN }}