Skip to content

Commit

Permalink
CI: Add attesations
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 4, 2024
1 parent 6c30a93 commit 3757b87
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ jobs:
runs-on: ubuntu-latest
environment: "Package deployment"
needs: [pre-publish]
if: github.event_name == 'release'
if: github.event_name == 'release' && github.event.action == 'published'
permissions:
id-token: write
attestations: write

steps:
- uses: actions/download-artifact@v3
with:
Expand All @@ -124,4 +128,12 @@ jobs:
run: |
mv dist/*/*.{tar.gz,whl} dist
rmdir dist/*/
- name: Generate artifact attestations
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
with:
subject-path: "dist/nipy_gradunwarp-*"

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

0 comments on commit 3757b87

Please sign in to comment.