diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 655635d..f636100 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