Use tag event instead of release.

This commit is contained in:
Jannis Leidel 2020-11-23 20:51:09 +01:00
parent 5eba33be65
commit ca6d76fb9f
No known key found for this signature in database
GPG key ID: C795956FB489DCA9

View file

@ -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