Skip to content

Commit dc66efc

Browse files
Remove overwrite from upload-artifact (#97)
It appears this is causing some wheels to not get uploaded to pypi.
1 parent 89182ad commit dc66efc

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/build.yml

+14-3
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
- uses: pypa/[email protected]
4343
- uses: actions/upload-artifact@v4
4444
with:
45+
name: artifact-wheel-${{ matrix.os }}
4546
path: wheelhouse/*.whl
46-
overwrite: true
4747

4848
make_sdist:
4949
runs-on: "ubuntu-latest"
@@ -54,11 +54,22 @@ jobs:
5454
python -m build --no-isolation --sdist
5555
- uses: actions/upload-artifact@v4
5656
with:
57+
name: artifact-sdist
5758
path: dist/*.tar.gz
58-
overwrite: true
5959

60-
upload_all:
60+
merge:
61+
runs-on: ubuntu-latest
6162
needs: [build_wheels, make_sdist]
63+
steps:
64+
- name: Merge Artifacts
65+
uses: actions/upload-artifact/merge@v4
66+
with:
67+
name: artifact
68+
pattern: artifact-*
69+
delete-merged: true
70+
71+
upload_all:
72+
needs: merge
6273
runs-on: "ubuntu-latest"
6374
environment: release
6475
if: github.event_name == 'release' && github.event.action == 'published'

0 commit comments

Comments
 (0)