From b3628bda399bec52e5cd40e30372bdb91a1a05bf Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Mon, 9 Dec 2024 19:34:18 +0000 Subject: [PATCH] Add skip existing on publish to TestPyPI --- .github/workflows/cd.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index b7a7062..6dde08c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -61,3 +61,6 @@ jobs: - uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://test.pypi.org/legacy/ + # Only skip existing distributions on testpypi (not on pypi). + # See https://github.com/pypa/gh-action-pypi-publish?tab=readme-ov-file#tolerating-release-package-file-duplicates + skip-existing: true