Skip to content

Commit 7dbcfa3

Browse files
committed
Continue work towards supporting upload-artifact@v4
By not naming the artifacts to be downloaded, all artifacts are downloaded. Compression level 0 is probably faster because wheels and so forth are compressed files. We want to error if there are no files, that's certainly unexpected.
1 parent ee1262b commit 7dbcfa3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/wheels.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ jobs:
2727

2828
- uses: actions/upload-artifact@v4
2929
with:
30+
name: sdist
3031
path: dist/*.tar.gz
32+
compression-level: 0
33+
if-no-files-found: error
3134

3235

3336
build_wheels:
@@ -75,9 +78,12 @@ jobs:
7578
with:
7679
name: wheel-${{ matrix.os }}${{ matrix.artifact-extra }}
7780
path: wheelhouse/*.whl
81+
compression-level: 0
82+
if-no-files-found: error
7883

7984

8085
upload_all:
86+
name: Upload release
8187
name: Upload if release
8288
needs: [build_wheels, build_sdist]
8389
runs-on: ubuntu-latest
@@ -90,7 +96,6 @@ jobs:
9096

9197
- uses: actions/download-artifact@v4
9298
with:
93-
name: artifact
9499
path: dist
95100

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

0 commit comments

Comments
 (0)