Skip to content

Commit 851f656

Browse files
committed
Publish to PyPI when version tags are pushed.
Switch the publish workflow from GitHub Release events to tag pushes so `git push origin vX.Y.Z` is enough to ship a new package.
1 parent 6426717 commit 851f656

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
name: Publish to PyPI
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- 'v[0-9]*'
7+
8+
concurrency:
9+
group: pypi-publish-${{ github.ref_name }}
10+
cancel-in-progress: false
11+
12+
permissions:
13+
contents: read
614

715
jobs:
816
build:

0 commit comments

Comments
 (0)