File tree Expand file tree Collapse file tree 2 files changed +33
-7
lines changed
Expand file tree Collapse file tree 2 files changed +33
-7
lines changed Original file line number Diff line number Diff line change 55 inputs :
66 version :
77 description : " Version xx.xx.xx"
8- required : true
98
9+ required : true
1010jobs :
1111 build_wheels :
1212 runs-on : ${{ matrix.os }}
2020 with :
2121 # Note: at least (5 + 1) for the whitelist to work
2222 fetch-depth : 6
23-
23+
2424 - name : Setup OS
2525 uses : ./.github/actions/setup-os
2626 with :
5252 with :
5353 name : cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
5454 path : ./wheelhouse/*.whl
55+
56+ publish-to-testpypi :
57+ name : publish python 🐍 distribution 📦 to testpypi
58+ runs-on : ubuntu-22.04
59+ needs :
60+ - build_wheels
61+
62+ environment :
63+ name : deploy-pypi
64+ url : https://test.pypi.org/p/dgtal-test
65+
66+ permissions :
67+ id-token : write # important: mandatory for trusted publishing
68+
69+ steps :
70+ - name : download all the dists
71+ uses : actions/download-artifact@v4
72+ with :
73+ path : dist/
74+ pattern : cibw-wheels-*
75+ merge-multiple : true
76+
77+ - name : publish distribution 📦 to testpypi
78+ uses : pypa/gh-action-pypi-publish@release/v1
79+
80+
Original file line number Diff line number Diff line change @@ -145,8 +145,8 @@ jobs:
145145 path : wrap/deploy/dist/
146146
147147 publish-to-testpypi :
148- name : Publish Python 🐍 distribution 📦 to TestPyPI
149- if : startsWith (github.ref, 'refs/tags/')
148+ name : publish python 🐍 distribution 📦 to testpypi
149+ if : startswith (github.ref, 'refs/tags/')
150150 needs :
151151 - build
152152 runs-on : ubuntu-22.04
@@ -156,17 +156,17 @@ jobs:
156156 url : https://pypi.org/p/dgtal
157157
158158 permissions :
159- id-token : write # IMPORTANT : mandatory for trusted publishing
159+ id-token : write # important : mandatory for trusted publishing
160160
161161 steps :
162- - name : Download all the dists
162+ - name : download all the dists
163163 uses : actions/download-artifact@v4
164164 with :
165165 path : dist/
166166 pattern : python-package-distributions-*
167167 merge-multiple : true
168168
169- - name : Publish distribution 📦 to TestPyPI
169+ - name : publish distribution 📦 to testpypi
170170 uses : pypa/gh-action-pypi-publish@release/v1
171171
172172
You can’t perform that action at this time.
0 commit comments