Skip to content

Commit 83a0f29

Browse files
authored
ci: support artifact v4 (#438)
* ci: support artifact v4 Signed-off-by: Henry Schreiner <[email protected]> * Update .github/workflows/build.yml --------- Signed-off-by: Henry Schreiner <[email protected]>
1 parent adbc86e commit 83a0f29

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ jobs:
117117
- uses: actions/upload-artifact@v4
118118
if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU)
119119
with:
120+
name: Wheel-${{ matrix.os }}-${{ matrix.build }}${{ matrix.arch }}
120121
path: ./wheelhouse/*.whl
121122

122123
build_manylinux2010_wheels:
@@ -145,6 +146,7 @@ jobs:
145146

146147
- uses: actions/upload-artifact@v4
147148
with:
149+
name: Wheel-manylinux2010-${{ matrix.arch }}
148150
path: ./wheelhouse/*.whl
149151

150152
build_sdist:
@@ -161,6 +163,7 @@ jobs:
161163

162164
- uses: actions/upload-artifact@v4
163165
with:
166+
name: SDist
164167
path: dist/*.tar.gz
165168

166169
test_sdist:
@@ -199,7 +202,7 @@ jobs:
199202
200203
- uses: actions/download-artifact@v4
201204
with:
202-
name: artifact
205+
name: SDist
203206
path: dist
204207

205208
- name: Install SDist
@@ -219,10 +222,9 @@ jobs:
219222
steps:
220223
- uses: actions/download-artifact@v4
221224
with:
222-
name: artifact
223-
path: dist
225+
path: all
224226

225-
- run: pipx run twine check --strict dist/*
227+
- run: pipx run twine check --strict all/*/*
226228

227229
upload_pypi:
228230
name: Upload to PyPI
@@ -237,7 +239,11 @@ jobs:
237239
steps:
238240
- uses: actions/download-artifact@v4
239241
with:
240-
name: artifact
241-
path: dist
242+
path: all
243+
244+
- name: Merge files
245+
run: |
246+
mkdir dist
247+
mv all/*/* dist/.
242248
243249
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)