We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c30a93 commit 3757b87Copy full SHA for 3757b87
.github/workflows/wheels.yml
@@ -115,7 +115,11 @@ jobs:
115
runs-on: ubuntu-latest
116
environment: "Package deployment"
117
needs: [pre-publish]
118
- if: github.event_name == 'release'
+ if: github.event_name == 'release' && github.event.action == 'published'
119
+ permissions:
120
+ id-token: write
121
+ attestations: write
122
+
123
steps:
124
- uses: actions/download-artifact@v3
125
with:
@@ -124,4 +128,12 @@ jobs:
128
run: |
129
mv dist/*/*.{tar.gz,whl} dist
126
130
rmdir dist/*/
131
132
+ - name: Generate artifact attestations
133
+ uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
134
+ with:
135
+ subject-path: "dist/nipy_gradunwarp-*"
136
127
137
- uses: pypa/gh-action-pypi-publish@release/v1
138
139
+ attestations: true
0 commit comments