Skip to content

Commit

Permalink
Use tag event instead of release.
Browse files Browse the repository at this point in the history
  • Loading branch information
jezdez committed Nov 23, 2020
1 parent 5eba33b commit ca6d76f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ name: Release

on:
push:
branches:
- master
release:
types:
- published
tags:
- '*'

jobs:
build:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ca6d76f

Please sign in to comment.