Skip to content

Commit 4bd3fe1

Browse files
committed
Fix GitHub Actions workflow artifact naming conflicts
1 parent 5d1b0a1 commit 4bd3fe1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Upload wheels
3939
uses: actions/upload-artifact@v4
4040
with:
41-
name: wheels
41+
name: wheels-linux-${{ matrix.target }}
4242
path: dist
4343

4444
windows:
@@ -66,7 +66,7 @@ jobs:
6666
- name: Upload wheels
6767
uses: actions/upload-artifact@v4
6868
with:
69-
name: wheels
69+
name: wheels-windows-${{ matrix.target }}
7070
path: dist
7171

7272
macos:
@@ -93,7 +93,7 @@ jobs:
9393
- name: Upload wheels
9494
uses: actions/upload-artifact@v4
9595
with:
96-
name: wheels
96+
name: wheels-macos-${{ matrix.target }}
9797
path: dist
9898

9999
sdist:
@@ -110,7 +110,7 @@ jobs:
110110
- name: Upload sdist
111111
uses: actions/upload-artifact@v4
112112
with:
113-
name: wheels
113+
name: wheels-sdist
114114
path: dist
115115

116116
test:
@@ -137,8 +137,9 @@ jobs:
137137
- name: Download wheels
138138
uses: actions/download-artifact@v4
139139
with:
140-
name: wheels
140+
pattern: wheels-*
141141
path: dist
142+
merge-multiple: true
142143

143144
- name: Install wheel
144145
shell: bash
@@ -173,8 +174,9 @@ jobs:
173174
- name: Download wheels
174175
uses: actions/download-artifact@v4
175176
with:
176-
name: wheels
177+
pattern: wheels-*
177178
path: dist
179+
merge-multiple: true
178180

179181
- name: Publish to PyPI
180182
uses: PyO3/maturin-action@v1

0 commit comments

Comments
 (0)