@@ -19,7 +19,7 @@ permissions:
1919
2020
2121jobs :
22- # #######################################
22+ # -------------------------------------------------------------------------------------
2323# Workflows to build wheels
2424 call-posix :
2525 uses : ./.github/workflows/posix.yml
3131
3232 call-windows-arm :
3333 uses : ./.github/workflows/windows-arm.yml
34- # #######################################
35-
36- download-wheels :
37- runs-on : ubuntu-latest
38- needs : [call-posix, call-windows, call-windows-arm]
39-
40- steps :
41- - uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
42- with :
43- run-id : ${{ needs.call-posix.outputs.run_id }}
44- pattern : wheels-*
45- merge-multiple : true
46- path : dist
4734
4835
36+ # -------------------------------------------------------------------------------------
4937 check-version :
5038 name : Ensure commit is tag before upload to PyPi
5139 if : github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'pypi'
6755 else
6856 echo "Current HEAD is not tagged."
6957 exit 1
70- fi
58+ fi
59+
60+
61+ # -------------------------------------------------------------------------------------
62+ testpypi-publish32 :
63+ name : Publish scipy-openblas32 to TestPyPI
64+ if : github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'testpypi'
65+ needs : [call-posix, call-windows, call-windows-arm]
66+ runs-on : ubuntu-latest
67+ environment :
68+ name : testpypi
69+ url : https://test.pypi.org/project/scipy-openblas32/
70+ permissions :
71+ id-token : write # mandatory for trusted publishing
72+ steps :
73+ - uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
74+ with :
75+ # I think the run-id for call-posix, call-windows, call-windows-arm should all be the same
76+ run-id : ${{ needs.call-posix.outputs.run_id }}
77+ pattern : wheels-*
78+ merge-multiple : true
79+ path : dist
80+
81+ - name : Publish
82+ uses : pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
83+ with :
84+ repository-url : https://test.pypi.org/legacy/
85+ skip-existing : true
86+ print-hash : true
87+ attestations : true
88+
89+
90+ testpypi-publish64 :
91+ name : Publish scipy-openblas64 to TestPyPI
92+ if : github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'testpypi'
93+ needs : [call-posix, call-windows, call-windows-arm]
94+ runs-on : ubuntu-latest
95+ environment :
96+ name : testpypi
97+ url : https://test.pypi.org/project/scipy-openblas64/
98+ permissions :
99+ id-token : write # mandatory for trusted publishing
100+ steps :
101+ - uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
102+ with :
103+ # I think the run-id for call-posix, call-windows, call-windows-arm should all be the same
104+ run-id : ${{ needs.call-posix.outputs.run_id }}
105+ pattern : wheels-*
106+ merge-multiple : true
107+ path : dist
108+
109+ - name : Publish
110+ uses : pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
111+ with :
112+ repository-url : https://test.pypi.org/legacy/
113+ skip-existing : true
114+ print-hash : true
115+ attestations : true
116+
117+ # # -------------------------------------------------------------------------------------
118+ # pypi-publish:
119+ # name: Publish release to PyPI
120+ # if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'pypi'
121+ # needs: [call-posix, call-windows, call-windows-arm, check-version]
122+ # runs-on: ubuntu-latest
123+ # environment:
124+ # name: pypi
125+ # url: https://pypi.org/p/scipy_openblas-32
126+ # permissions:
127+ # id-token: write # mandatory for trusted publishing
128+ # steps:
129+ # - uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
130+ # with:
131+ # run-id: ${{ needs.call-posix.outputs.run_id }}
132+ # pattern: wheels-*
133+ # merge-multiple: true
134+ # path: dist
135+ #
136+ # - name: Publish
137+ # uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
138+ # with:
139+ # print-hash: true
140+ # attestations: true
0 commit comments