Skip to content

Commit

Permalink
chore: Add attest
Browse files Browse the repository at this point in the history
  • Loading branch information
mwiewior committed Jan 12, 2025
1 parent 77f6ff4 commit 36eae52
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,22 @@ jobs:
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
permissions:
# 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 36eae52

Please sign in to comment.