Skip to content

Commit a6dd6ca

Browse files
authored
Update python-package.yml
1 parent d38c027 commit a6dd6ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ jobs:
5858
python -m pip install --upgrade pip
5959
pip install setuptools wheel twine
6060
- name: Build and publish on PyPi
61+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
6162
env:
6263
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
6364
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
6465
run: |
65-
if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
6666
python setup.py sdist bdist_wheel
6767
twine upload dist/*

0 commit comments

Comments
 (0)