You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The upload_pypi job in the Actions workflow defined in .github/workflows/build.yml, which is triggered on new releases, is failing with an error
Attestation generation failure:
/github/workspace/dist/s2fft-1.2.0.tar.gz already has a publish attestation: /github/workspace/dist/s2fft-1.2.0.tar.gz.publish.attestation
You're seeing this because the action attempted to generated PEP 740
attestations for its inputs, but failed to do so.
Specifically this happens in the Publish package distribution to PyPI step after the previous Publish package distribution to Test PyPI step successfully completes.
I think we are hitting against the issue described in pypa/gh-action-pypi-publish#283 (comment), specifically that the step publishing to Test PyPI creates an attestation file (used to sign / verify the package upload as far as I can tell), which a subsequent twine upload command in the step publishing to PyPI finds and raises an error (as it expects there to be no existing attestation file present).
From the discussion in the issue thread it appears there are a couple of possible resolutions:
Refactor the workflow to use separate jobs for publishing to Test PyPI and PyPI. This appears to be the recommended approach as then they each can be operated in a separate environment with its own restrictions.
The text was updated successfully, but these errors were encountered:
The
upload_pypi
job in the Actions workflow defined in.github/workflows/build.yml
, which is triggered on new releases, is failing with an errorSpecifically this happens in the Publish package distribution to PyPI step after the previous Publish package distribution to Test PyPI step successfully completes.
I think we are hitting against the issue described in pypa/gh-action-pypi-publish#283 (comment), specifically that the step publishing to Test PyPI creates an attestation file (used to sign / verify the package upload as far as I can tell), which a subsequent
twine upload
command in the step publishing to PyPI finds and raises an error (as it expects there to be no existing attestation file present).From the discussion in the issue thread it appears there are a couple of possible resolutions:
attestations: false
inwith
block for step.The text was updated successfully, but these errors were encountered: