Skip to content

Commit

Permalink
ci: Add GitHub artifact attestations to package distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed May 22, 2024
1 parent d5e1f3a commit 90a50fa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ jobs:
url: https://pypi.org/p/boost-histogram
permissions:
id-token: write
attestations: write
contents: read

steps:
- uses: actions/download-artifact@v4
Expand All @@ -149,4 +151,9 @@ jobs:
- name: List all files
run: ls -lh dist

- name: Generate artifact attestation for sdist and wheels
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
with:
subject-path: "dist/boost_histogram-*"

- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 90a50fa

Please sign in to comment.