Skip to content

Commit d03f15b

Browse files
committed
fix(ci): Fix bug in use of upload-artifact failing to merge multiple artifacts into a single release.
1 parent 26c7876 commit d03f15b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/build-and-release.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ jobs:
3939

4040
- uses: actions/upload-artifact@v4
4141
with:
42+
name: wheels
4243
path: ./wheelhouse/*.whl
4344

44-
build_arm64_wheels:
45+
build_wheels_arm64:
4546
name: Build arm64 wheels
4647
runs-on: ubuntu-latest
4748
steps:
@@ -67,6 +68,7 @@ jobs:
6768
- name: Upload wheels as artifacts
6869
uses: actions/upload-artifact@v4
6970
with:
71+
name: wheels_arm64
7072
path: ./wheelhouse/*.whl
7173

7274
build_sdist:
@@ -89,18 +91,25 @@ jobs:
8991
python -m build --sdist
9092
- uses: actions/upload-artifact@v4
9193
with:
94+
name: sdist
9295
path: ./dist/*.tar.gz
9396

9497
release:
9598
name: Release
96-
needs: [build_wheels, build_arm64_wheels, build_sdist]
99+
needs: [build_wheels, build_wheels_arm64, build_sdist]
97100
runs-on: ubuntu-latest
98101

99102
steps:
103+
- name: Merge Artifacts
104+
uses: actions/upload-artifact/merge@v4
105+
with:
106+
name: release
107+
100108
- uses: actions/download-artifact@v3
101109
with:
102-
name: artifact
110+
name: release
103111
path: dist
112+
104113
- uses: softprops/action-gh-release@v2
105114
with:
106115
files: dist/*

0 commit comments

Comments
 (0)