From 360cff81a390540cd60d6a1094c3575bd44953a0 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> Date: Tue, 31 Oct 2023 13:02:50 -0400 Subject: [PATCH] Overwrite existing distributions when uploading to test PyPI. (#12658) --- .github/workflows/_release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index 793081ae405..88144dbeaa2 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -89,6 +89,11 @@ jobs: print-hash: true repository-url: https://test.pypi.org/legacy/ + # We overwrite any existing distributions with the same name and version. + # This is *only for CI use* and is *extremely dangerous* otherwise! + # https://github.com/pypa/gh-action-pypi-publish#tolerating-release-package-file-duplicates + skip-existing: true + pre-release-checks: needs: - build