Skip to content

Commit 654a8bc

Browse files
committed
publish a packages to pypi when a non-test version is released
1 parent ea254ad commit 654a8bc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ on:
44
push:
55
tags:
66
- test-v*
7+
release:
8+
types:
9+
- "published"
710

811
jobs:
912
pypi:
1013
name: Publish to PyPI
1114
runs-on: ubuntu-latest
1215
environment:
13-
name: testpypi
16+
name: ${{ !contains(github.ref_name, 'test') && startsWith(github.ref_name, 'v') && 'pypi' || 'testpypi' }}
1417
permissions:
1518
id-token: write
1619
steps:

0 commit comments

Comments
 (0)