@@ -220,37 +220,54 @@ jobs:
220
220
set_upload_vars
221
221
upload_wheels
222
222
223
- publish :
224
- if : github.repository == 'pandas-dev/pandas' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
225
- needs :
226
- - build_sdist
227
- - build_wheels
228
- runs-on : ubuntu-latest
223
+ publish :
224
+ if : >
225
+ github.repository == 'evgmosme/pandas' &&
226
+ github.event_name == 'push' &&
227
+ startsWith(github.ref, 'refs/tags/v')
229
228
230
- environment :
231
- name : pypi
229
+ needs :
230
+ - build_sdist
231
+ - build_wheels
232
232
233
- permissions :
234
- id-token : write # OIDC token for Trusted Publishing
235
- contents : read
233
+ runs-on : ubuntu-latest
236
234
237
- steps :
238
- - name : Download all artifacts
239
- uses : actions/download-artifact@v4
240
- with :
241
- path : dist # all files land in ./dist/**
235
+ environment :
236
+ name : testpypi # must match the Environment in repo settings
237
+ permissions :
238
+ id-token : write # OIDC for Trusted Publishing
239
+ contents : read
242
240
243
- - name : Collect files
244
- run : |
245
- mkdir -p upload
246
- # skip anything containing 'pyodide' in the filename
247
- find dist -name '*pyodide*.whl' -prune -o \
248
- -name '*.whl' -exec mv {} upload/ \;
249
- find dist -name '*.tar.gz' -exec mv {} upload/ \;
241
+ steps :
242
+ - name : Download all artefacts
243
+ uses : actions/download-artifact@v4
244
+ with :
245
+ path : dist # everything lands in ./dist/**
250
246
251
- - name : Publish to PyPI (Trusted Publishing)
252
- uses : pypa/gh-action-pypi-publish@release/v1
253
- with :
254
- repository-url : https://upload.pypi.org/legacy/
255
- packages-dir : upload
256
- skip-existing : true
247
+ - name : Collect files
248
+ run : |
249
+ mkdir -p upload
250
+ # skip any wheel that contains 'pyodide'
251
+ find dist -name '*pyodide*.whl' -prune -o \
252
+ -name '*.whl' -exec mv {} upload/ \;
253
+ find dist -name '*.tar.gz' -exec mv {} upload/ \;
254
+
255
+ - name : Publish to **Test PyPI** (Trusted Publishing)
256
+ uses : pypa/gh-action-pypi-publish@release/v1
257
+ with :
258
+ repository-url : https://test.pypi.org/legacy/
259
+ packages-dir : upload
260
+ skip-existing : true
261
+
262
+ # environment:
263
+ # name: pypi
264
+ # permissions:
265
+ # id-token: write
266
+ # contents: read
267
+ #
268
+ # - name: Publish to **PyPI** (Trusted Publishing)
269
+ # uses: pypa/gh-action-pypi-publish@release/v1
270
+ # with:
271
+ # repository-url: https://upload.pypi.org/legacy/
272
+ # packages-dir: upload
273
+ # skip-existing: true
0 commit comments