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:
115
115
runs-on : ubuntu-latest
116
116
environment : " Package deployment"
117
117
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
+
119
123
steps :
120
124
- uses : actions/download-artifact@v3
121
125
with :
@@ -124,4 +128,12 @@ jobs:
124
128
run : |
125
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
+ with :
139
+ attestations : true
You can’t perform that action at this time.
0 commit comments