Skip to content

The agent engineering platform.

Overwrite existing distributions when uploading to test PyPI. (#12658)

Predrag Gruevski360cff81a390
diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml
index 793081ae40..88144dbeaa 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