@@ -240,13 +240,8 @@ jobs:
240240 - name : Upload wheels
241241 uses : actions/upload-artifact@v4
242242 with :
243- name : wheels
244- path : dist/*.whl
245- if-no-files-found : error
246-
247- # List the contents of the dist directory for debugging
248- - name : List final linux dist directory contents
249- run : ls -l dist || echo "dist directory does not exist or is empty"
243+ name : wheels-${{ matrix.target }}
244+ path : dist
250245
251246 windows :
252247 runs-on : windows-latest
@@ -278,9 +273,8 @@ jobs:
278273 - name : Upload wheels
279274 uses : actions/upload-artifact@v4
280275 with :
281- name : wheels
282- path : dist/*.whl
283- if-no-files-found : error
276+ name : wheels-${{ matrix.target }}
277+ path : dist
284278
285279 macos_x86 :
286280 runs-on : macos-latest
@@ -308,9 +302,8 @@ jobs:
308302 - name : Upload wheels
309303 uses : actions/upload-artifact@v4
310304 with :
311- name : wheels
312- path : dist/*.whl
313- if-no-files-found : error
305+ name : wheels-mac-x86_64
306+ path : dist
314307
315308 macos_aarch64 :
316309 runs-on : macos-latest-large
@@ -338,13 +331,8 @@ jobs:
338331 - name : Upload wheels
339332 uses : actions/upload-artifact@v4
340333 with :
341- name : wheels
342- path : dist/*.whl
343- if-no-files-found : error
344-
345- # List the contents of the dist directory for debugging
346- - name : List final macos_aarch64 dist directory contents
347- run : ls -l dist || echo "dist directory does not exist or is empty"
334+ name : wheels-mac-aarch64
335+ path : dist
348336
349337 sdist :
350338 runs-on : ubuntu-latest
@@ -366,7 +354,7 @@ jobs:
366354 - name : Upload sdist
367355 uses : actions/upload-artifact@v4
368356 with :
369- name : sdist
357+ name : wheels
370358 path : dist
371359
372360 release :
@@ -376,25 +364,16 @@ jobs:
376364
377365 runs-on : ubuntu-latest
378366 environment : Publish
379- permissions :
380- # IMPORTANT: this permission is mandatory for Trusted Publishing
381- id-token : write
382367 needs : [linux, windows, macos_x86, macos_aarch64, sdist]
383368 steps :
384369 - uses : actions/download-artifact@v4
385370 with :
371+ pattern : wheels-*
386372 name : wheels
387- path : dist
388-
389- - name : Download sdist artifact
390- uses : actions/download-artifact@v4
391- with :
392- name : sdist
393- path : dist
394373
395374 # List the contents of the dist directory for debugging
396375 - name : List final dist directory contents
397- run : ls -l dist || echo "dist directory does not exist or is empty"
376+ run : ls -R
398377
399378 - name : Publish package distributions to PyPI
400379 uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments