Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add GitHub artifact attestations to package distribution #151

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

matthewfeickert
Copy link
Member

@matthewfeickert matthewfeickert self-assigned this Jun 17, 2024
@matthewfeickert matthewfeickert merged commit 3938a26 into main Jun 17, 2024
10 checks passed
@matthewfeickert matthewfeickert deleted the ci/add-gh-attestation branch June 17, 2024 06:31
Comment on lines +60 to +68
- name: Generate artifact attestation for sdist and wheel
# If publishing to TestPyPI or PyPI
if: >-
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'recast-hep/recast-atlas')
|| (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true' && github.repository == 'recast-hep/recast-atlas')
|| (github.event_name == 'release' && github.event.action == 'published' && github.repository == 'recast-hep/recast-atlas')
uses: actions/attest-build-provenance@534b352d658f90498fd148d231fdbf88f3886a3a # v1.3.1
with:
subject-path: "dist/recast_atlas-*"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These also run on TestPyPI before PyPI, which is not the intended result, as 2 sets of attestations are made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant