Skip to content

Commit 2f2b749

Browse files
committed
Skip existing uploads
1 parent c8b47e2 commit 2f2b749

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)