Skip to content

Commit e37ace5

Browse files
committed
Upload pypi only on v tag
1 parent c08a58e commit e37ace5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build_wheels.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ jobs:
117117
with:
118118
path: ./dist/*.whl
119119
- name: Upload pypi
120+
if: startsWith(github.ref, 'refs/tags/v')
120121
run: |
121122
python3 -m pip install twine
122123
python3 -m twine upload dist/*.whl
@@ -234,6 +235,7 @@ jobs:
234235
with:
235236
path: ./dist/*.whl
236237
- name: Upload pypi
238+
if: startsWith(github.ref, 'refs/tags/v')
237239
run: |
238240
python3 -m pip install twine
239241
python3 -m twine upload dist/*.whl
@@ -359,6 +361,7 @@ jobs:
359361
with:
360362
path: ./wheelhouse/*.whl
361363
- name: Upload pypi
364+
if: startsWith(github.ref, 'refs/tags/v')
362365
run: |
363366
python3 -m pip install twine
364367
python3 -m twine upload wheelhouse/*.whl

0 commit comments

Comments
 (0)