Skip to content

Commit a33e3cd

Browse files
jeremyederclaude
andauthored
fix: disable attestations for Test PyPI to avoid conflict (#155)
- 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 <[email protected]>
1 parent c476c3f commit a33e3cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ jobs:
7979
uses: pypa/gh-action-pypi-publish@release/v1
8080
with:
8181
repository-url: https://test.pypi.org/legacy/
82+
attestations: false # Disable to avoid conflict with production PyPI
8283

8384
- name: Publish to PyPI
8485
if: steps.check_release.outputs.new_release == 'true'
8586
uses: pypa/gh-action-pypi-publish@release/v1
87+
with:
88+
attestations: true # Enable attestations for production

0 commit comments

Comments
 (0)