Skip to content

Commit

Permalink
ci: Enable artifact attestation for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
abelcheung committed Sep 21, 2024
1 parent 10718d6 commit 694a355
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,22 @@ jobs:
runs-on: ubuntu-22.04
permissions:
contents: write
id-token: write
attestations: write
steps:
- uses: actions/download-artifact@v4
with:
pattern: dist-*
path: dist
merge-multiple: true

- uses: actions/attest-build-provenance@v1
with:
subject-path: |
dist/*.whl
dist/*.tar.gz
# only need contents: write
- uses: ncipollo/release-action@v1
with:
artifacts: "dist/*.whl,dist/*.tar.gz"
Expand Down

0 comments on commit 694a355

Please sign in to comment.