diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 6227877..a5b41bf 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -8,7 +8,9 @@ name: Upload Python Package -on: push +on: + release: + types: [published] permissions: contents: read @@ -31,7 +33,6 @@ jobs: - name: Build package run: python -m build - name: Publish package - if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: user: __token__