File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -220,11 +220,8 @@ jobs:
220
220
set_upload_vars
221
221
upload_wheels
222
222
223
- # ###############################################
224
- # Publish Wheels and Source Distribution to PyPI
225
- # ###############################################
226
223
publish :
227
- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
224
+ if : github.repository == 'pandas-dev/pandas' && github. event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
228
225
needs :
229
226
- build_sdist
230
227
- build_wheels
@@ -238,13 +235,11 @@ jobs:
238
235
contents : read
239
236
240
237
steps :
241
- # 1. Pull every artifact produced by the two upstream jobs
242
238
- name : Download all artifacts
243
239
uses : actions/download-artifact@v4
244
240
with :
245
241
path : dist # all files land in ./dist/**
246
242
247
- # 2. Move wheels & sdist into a flat 'upload' dir (skip Pyodide wheels)
248
243
- name : Collect files
249
244
run : |
250
245
mkdir -p upload
@@ -253,9 +248,9 @@ jobs:
253
248
-name '*.whl' -exec mv {} upload/ \;
254
249
find dist -name '*.tar.gz' -exec mv {} upload/ \;
255
250
256
- # 3. Publish to PyPI using Trusted Publishing
257
251
- name : Publish to PyPI (Trusted Publishing)
258
252
uses : pypa/gh-action-pypi-publish@release/v1
259
253
with :
260
254
repository-url : https://upload.pypi.org/legacy/
261
255
packages-dir : upload
256
+ skip-existing : true
You can’t perform that action at this time.
0 commit comments