Skip to content

Commit

Permalink
chore: Add attest (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwiewior authored Jan 12, 2025
1 parent 77f6ff4 commit 7220ad3
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,21 @@ jobs:
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
# Use to sign the release artifacts
id-token: write
# Used to upload release artifacts
contents: write
# Used to generate artifact attestation
attestations: write
steps:
- uses: actions/download-artifact@v4
with:
pattern: wheels-*
merge-multiple: true
path: dist
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
with:
command: upload
args: --non-interactive --skip-existing wheels-*/*
- uses: actions/download-artifact@v4
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: 'wheels-*/*'
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
with:
command: upload
args: --non-interactive --skip-existing wheels-*/*

0 comments on commit 7220ad3

Please sign in to comment.