File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -226,13 +226,13 @@ jobs:
226
226
# pypa/gh-action-pypi-publish@master does not work on OSX
227
227
# Alpha, Beta and dev releases contain a - in the tag.
228
228
if : contains(github.ref, '-') && startsWith(github.ref, 'refs/tags')
229
- run : twine upload --repository-url https://test.pypi.org/legacy/ dist/*
229
+ run : twine upload --skip-existing -- repository-url https://test.pypi.org/legacy/ dist/*
230
230
env :
231
231
TWINE_USERNAME : __token__
232
232
TWINE_PASSWORD : ${{ secrets.TEST_PYPI_API_TOKEN }}
233
233
- name : Publish package to PyPI
234
234
if : " !contains(github.ref, '-') && startsWith(github.ref, 'refs/tags')"
235
- run : twine upload dist/*
235
+ run : twine upload --skip-existing dist/*
236
236
env :
237
237
TWINE_USERNAME : __token__
238
238
TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments