From ca6d76fb9f766b4225fc8f954c2ede1befe86f2d Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Mon, 23 Nov 2020 20:51:09 +0100 Subject: [PATCH] Use tag event instead of release. --- .github/workflows/release.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 655635d..84b9034 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,11 +2,8 @@ name: Release on: push: - branches: - - master - release: - types: - - published + tags: + - '*' jobs: build: @@ -48,7 +45,7 @@ jobs: twine check dist/* - name: Upload packages to Jazzband - if: github.event.action == 'published' + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: user: jazzband