Skip to content

Commit eb32b73

Browse files
committed
ci(release): guard PyPI when no PYPI_API_TOKEN
1 parent 2b0502b commit eb32b73

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
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/upload-artifact@v4
2020
with: { name: dist, path: dist/* }
2121
- name: Publish to PyPI
22-
if: startsWith(github.ref, 'refs/tags/v')
22+
if: startsWith(github.ref, 'refs/tags/v') && secrets.PYPI_API_TOKEN != ''
2323
uses: pypa/gh-action-pypi-publish@release/v1
2424
with:
2525
user: __token__

0 commit comments

Comments
 (0)