File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,19 @@ defaults:
24
24
shell : bash -el {0}
25
25
26
26
jobs :
27
+ build-package :
28
+ name : Build & inspect package
29
+ runs-on : ubuntu-latest
30
+ permissions :
31
+ attestations : write
32
+ id-token : write
33
+
34
+ steps :
35
+ - uses : actions/checkout@v4
36
+ with :
37
+ fetch-depth : 0
38
+ - uses : hynek/build-and-inspect-python-package@v2
39
+
27
40
test :
28
41
if : " !contains(github.event.head_commit.message, '[skip ci]' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'nipreps/sdcflows'))"
29
42
runs-on : ubuntu-latest
@@ -199,3 +212,23 @@ jobs:
199
212
file : cov.xml
200
213
token : ${{ secrets.CODECOV_TOKEN }}
201
214
if : ${{ always() }}
215
+
216
+ publish :
217
+ name : Publish released package to pypi.org
218
+ environment : release-pypi
219
+ if : github.event.action == 'published'
220
+ runs-on : ubuntu-latest
221
+ needs : [build-package, test]
222
+ permissions :
223
+ attestations : write
224
+ id-token : write
225
+
226
+ steps :
227
+ - name : Download packages built by build-and-inspect-python-package
228
+ uses : actions/download-artifact@v4
229
+ with :
230
+ name : Packages
231
+ path : dist
232
+
233
+ - name : Upload package to PyPI
234
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments