mirror of
https://github.com/jazzband/contextlib2.git
synced 2026-05-13 01:23:12 +00:00
Use tag event instead of release.
This commit is contained in:
parent
5eba33be65
commit
ca6d76fb9f
1 changed files with 3 additions and 6 deletions
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
|
@ -2,11 +2,8 @@ name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- master
|
- '*'
|
||||||
release:
|
|
||||||
types:
|
|
||||||
- published
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -48,7 +45,7 @@ jobs:
|
||||||
twine check dist/*
|
twine check dist/*
|
||||||
|
|
||||||
- name: Upload packages to Jazzband
|
- 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
|
uses: pypa/gh-action-pypi-publish@master
|
||||||
with:
|
with:
|
||||||
user: jazzband
|
user: jazzband
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue