From 5b7745fd2b921bb939f7570f85e938980eb0d766 Mon Sep 17 00:00:00 2001 From: Jeremy Eder Date: Thu, 4 Dec 2025 00:51:27 -0500 Subject: [PATCH] fix: disable attestations for Test PyPI to avoid conflict MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Disable attestations for Test PyPI publish step - Keep attestations enabled for production PyPI - Prevents "attestation files already exist" error when publishing to both The pypa/gh-action-pypi-publish action creates attestation files (.publish.attestation) during the first publish. When we try to publish to a second repository in the same workflow run, it tries to create them again, causing a conflict. Solution: Disable attestations for Test PyPI (validation only), enable for production. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1842b86..9b192ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,7 +79,10 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://test.pypi.org/legacy/ + attestations: false # Disable to avoid conflict with production PyPI - name: Publish to PyPI if: steps.check_release.outputs.new_release == 'true' uses: pypa/gh-action-pypi-publish@release/v1 + with: + attestations: true # Enable attestations for production