Skip to content

Commit 6818ef6

Browse files
committed
CI: Validate release workflow. Only push to PyPI on designated event.
1 parent d456794 commit 6818ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
pypi:
1313
name: 'Build & publish package to PyPI'
1414
runs-on: 'ubuntu-latest'
15-
if: startsWith(github.event.ref, 'refs/tags')
1615
steps:
1716
- uses: actions/checkout@v6
1817
with:
@@ -25,6 +24,7 @@ jobs:
2524
run: uv build
2625

2726
- name: Publish package to PyPI
27+
if: startsWith(github.event.ref, 'refs/tags')
2828
uses: pypa/gh-action-pypi-publish@release/v1
2929
with:
3030
user: __token__

0 commit comments

Comments
 (0)