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 @@ -264,13 +264,13 @@ jobs:
264
264
# pypa/gh-action-pypi-publish@master does not work on OSX
265
265
# Alpha, Beta and dev releases contain a - in the tag.
266
266
if : contains(github.ref, '-') && startsWith(github.ref, 'refs/tags')
267
- run : twine upload --repository-url https://test.pypi.org/legacy/ dist/*
267
+ run : twine upload --skip-existing -- repository-url https://test.pypi.org/legacy/ dist/*
268
268
env :
269
269
TWINE_USERNAME : __token__
270
270
TWINE_PASSWORD : ${{ secrets.TEST_PYPI_API_TOKEN }}
271
271
- name : Publish package to PyPI
272
272
if : " !contains(github.ref, '-') && startsWith(github.ref, 'refs/tags')"
273
- run : twine upload dist/*
273
+ run : twine upload --skip-existing dist/*
274
274
env :
275
275
TWINE_USERNAME : __token__
276
276
TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments