From 2f2b749a7db43c92f4c0bf09f00615f0a4aeb48b Mon Sep 17 00:00:00 2001 From: Ruben Vorderman Date: Fri, 9 Aug 2024 16:21:01 +0200 Subject: [PATCH] Skip existing uploads --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e767f53..f83ca894 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -264,13 +264,13 @@ jobs: # pypa/gh-action-pypi-publish@master does not work on OSX # Alpha, Beta and dev releases contain a - in the tag. if: contains(github.ref, '-') && startsWith(github.ref, 'refs/tags') - run: twine upload --repository-url https://test.pypi.org/legacy/ dist/* + run: twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ dist/* env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }} - name: Publish package to PyPI if: "!contains(github.ref, '-') && startsWith(github.ref, 'refs/tags')" - run: twine upload dist/* + run: twine upload --skip-existing dist/* env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}