Skip to content

Commit 5018b2e

Browse files
committed
CI: Validate release workflow. Only push to PyPI on designated event.
1 parent f4af761 commit 5018b2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.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)