Skip to content

Commit 56e9a94

Browse files
committed
Fix CI artifact naming conflict
- Change artifact names from 'wheels-{os}-{python}' to 'wheels-{platform_id}-py{python}' - This prevents 409 conflicts when multiple matrix jobs have the same OS and Python but different architectures (e.g., ubuntu-latest with manylinux_x86_64 vs manylinux_aarch64) - Add overwrite: true to both wheels and sdist artifacts to allow safe re-runs - The upload_pypi job will still work correctly with pattern: '*' and merge-multiple: true
1 parent 45cbdcc commit 56e9a94

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/cibuildwheel.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,9 @@ jobs:
232232
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macosx_deployment_target }}
233233
- uses: actions/upload-artifact@v4
234234
with:
235-
name: wheels-${{ matrix.os }}-${{ matrix.python }}
235+
name: wheels-${{ matrix.platform_id }}-py${{ matrix.python }}
236236
path: ./wheelhouse/*.whl
237+
overwrite: true
237238

238239
build_sdist:
239240
name: Build source distribution
@@ -252,6 +253,7 @@ jobs:
252253
with:
253254
name: sdist
254255
path: dist/*.tar.gz
256+
overwrite: true
255257

256258
upload_pypi:
257259
needs: [build_wheels, build_sdist]

0 commit comments

Comments
 (0)