File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ on: # yamllint disable-line rule:truthy
36
36
- macOS
37
37
- macOS-arm64
38
38
- macOS-x86_64
39
+ publish-pypi :
40
+ description : " Publish to PyPI"
41
+ default : false
42
+ type : boolean
39
43
publish-anaconda :
40
44
description : " Publish to Anaconda"
41
45
default : false
51
55
release : ${{ inputs.release }}
52
56
os-arch : ${{ inputs.os-arch }}
53
57
58
+ publish-pypy :
59
+ if : ${{ inputs.publish-pypi }}
60
+ runs-on : ubuntu-latest
61
+ needs : sdist
62
+ environment : # TODO: update url to pypi.org
63
+ name : pypi
64
+ url : https://test.pypi.org/p/${{ inputs.mpiname }}
65
+ permissions :
66
+ contents : read
67
+ id-token : write
68
+ attestations : write
69
+
70
+ steps :
71
+
72
+ - name : Download wheel artifacts
73
+ uses : actions/download-artifact@v4
74
+ with :
75
+ path : dist
76
+ pattern : wheel-*
77
+ merge-multiple : true
78
+
79
+ - if : ${{ false }} # TODO: remove 'if' condition
80
+ name : Attest wheel artifacts
81
+ uses : actions/attest-build-provenance@v2
82
+ with :
83
+ subject-path : dist/*.whl
84
+
85
+ - name : Publish to PyPI
86
+ uses : pypa/gh-action-pypi-publish@release/v1
87
+ with : # TODO: remove repository-url
88
+ repository-url : https://test.pypi.org/legacy/
89
+
54
90
publish-anaconda :
55
91
if : ${{ inputs.publish-anaconda }}
56
92
needs : wheel
You can’t perform that action at this time.
0 commit comments