Skip to content

Commit 9e20c4b

Browse files
committed
ci: pypi publish only on tag pushes
1 parent ee2a603 commit 9e20c4b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
options:
1212
- dry-run
1313
- testpypi
14-
- pypi
1514
push:
1615
tags:
1716
- "v*"
@@ -33,7 +32,7 @@ jobs:
3332
python-version: "3.14"
3433

3534
- name: Verify release tag matches package version
36-
if: ${{ github.event_name == 'push' || inputs.publish_target != 'dry-run' }}
35+
if: ${{ github.event_name == 'push' || inputs.publish_target == 'testpypi' }}
3736
run: |
3837
python - <<'PY'
3938
import os
@@ -106,7 +105,7 @@ jobs:
106105

107106
publish-pypi:
108107
name: Publish to PyPI
109-
if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.publish_target == 'pypi') }}
108+
if: ${{ github.event_name == 'push' }}
110109
needs: build
111110
runs-on: ubuntu-latest
112111
permissions:

0 commit comments

Comments
 (0)