File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,11 @@ jobs:
115115 runs-on : ubuntu-latest
116116 environment : " Package deployment"
117117 needs : [pre-publish]
118- if : github.event_name == 'release'
118+ if : github.event_name == 'release' && github.event.action == 'published'
119+ permissions :
120+ id-token : write
121+ attestations : write
122+
119123 steps :
120124 - uses : actions/download-artifact@v3
121125 with :
@@ -124,4 +128,12 @@ jobs:
124128 run : |
125129 mv dist/*/*.{tar.gz,whl} dist
126130 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+
127137 - uses : pypa/gh-action-pypi-publish@release/v1
138+ with :
139+ attestations : true
You can’t perform that action at this time.
0 commit comments