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:
264264 # pypa/gh-action-pypi-publish@master does not work on OSX
265265 # Alpha, Beta and dev releases contain a - in the tag.
266266 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/*
268268 env :
269269 TWINE_USERNAME : __token__
270270 TWINE_PASSWORD : ${{ secrets.TEST_PYPI_API_TOKEN }}
271271 - name : Publish package to PyPI
272272 if : " !contains(github.ref, '-') && startsWith(github.ref, 'refs/tags')"
273- run : twine upload dist/*
273+ run : twine upload --skip-existing dist/*
274274 env :
275275 TWINE_USERNAME : __token__
276276 TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments