Skip to content

Commit 573de28

Browse files
committed
Change upload logic to merge artifacts
1 parent e56d0b6 commit 573de28

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/build_wheels.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050

5151
- uses: actions/upload-artifact@v4
5252
with:
53+
name: wheels-${{ matrix.os}}-${{ matrix.arch }}
5354
path: ./wheelhouse/*.whl
5455

5556
build_sdist:
@@ -64,16 +65,24 @@ jobs:
6465

6566
- uses: actions/upload-artifact@v4
6667
with:
68+
name: source-distribution
6769
path: dist/*.tar.gz
6870

69-
upload_pypi:
71+
merge:
7072
needs: [build_wheels, build_sdist]
7173
runs-on: ubuntu-latest
74+
steps:
75+
- name: Merge Artifacts
76+
uses: actions/upload-artifact/merge@v4
77+
78+
upload_pypi:
79+
needs: [build_wheels, build_sdist, merge]
80+
runs-on: ubuntu-latest
7281
if: github.event.inputs.upload_to_pypi == 'true'
7382
steps:
7483
- uses: actions/download-artifact@v4
7584
with:
76-
name: artifact
85+
name: merged-artifacts
7786
path: dist
7887

7988
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)