From 5356c5c4bc08a0e53e1a0b89f42bd8bb8c6b47f5 Mon Sep 17 00:00:00 2001 From: Emiel Slootman <4210747+EmielSlootman@users.noreply.github.com> Date: Thu, 14 Apr 2022 10:52:38 +0200 Subject: [PATCH] Update python-publish.yml --- .github/workflows/python-publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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__