We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea254ad commit 654a8bcCopy full SHA for 654a8bc
1 file changed
.github/workflows/release.yml
@@ -4,13 +4,16 @@ on:
4
push:
5
tags:
6
- test-v*
7
+ release:
8
+ types:
9
+ - "published"
10
11
jobs:
12
pypi:
13
name: Publish to PyPI
14
runs-on: ubuntu-latest
15
environment:
- name: testpypi
16
+ name: ${{ !contains(github.ref_name, 'test') && startsWith(github.ref_name, 'v') && 'pypi' || 'testpypi' }}
17
permissions:
18
id-token: write
19
steps:
0 commit comments