From cf7c5259d263e5ebc3cece27a107abeafb11ca4e Mon Sep 17 00:00:00 2001 From: Vincent Traag Date: Sun, 21 Jan 2024 18:11:34 +0100 Subject: [PATCH] CI: Upgrade workflow for up/download artifacts@v4 Follows instructions provided in https://github.com/actions/download-artifact/blob/bb3fa7fd35ab8113a980912eb9f59b846d14e3ff/docs/MIGRATION.md#multiple-uploads-to-the-same-named-artifact --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0e31e16..e3c29c6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -69,6 +69,7 @@ jobs: - uses: actions/upload-artifact@v4 with: + name: wheels-linux-${{ matrix.wheel_arch }} path: ./wheelhouse/*.whl build_wheel_linux_aarch64: @@ -99,6 +100,7 @@ jobs: - uses: actions/upload-artifact@v4 with: + name: wheels-linux-aarch64 path: ./wheelhouse/*.whl build_wheel_macos: @@ -152,6 +154,7 @@ jobs: DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} - uses: actions/upload-artifact@v4 with: + name: wheels-macos-${{ matrix.wheel_arch }} path: ./wheelhouse/*.whl build_wheel_win: @@ -205,6 +208,7 @@ jobs: CIBW_REPAIR_WHEEL_COMMAND: "delvewheel repair -w {dest_dir} {wheel}" - uses: actions/upload-artifact@v4 with: + name: wheels-win-${{ matrix.wheel_arch }} path: ./wheelhouse/*.whl build_sdist: @@ -230,6 +234,7 @@ jobs: - uses: actions/upload-artifact@v4 with: + name: wheels-sdist path: dist/*.tar.gz upload_pypi: @@ -241,7 +246,8 @@ jobs: steps: - uses: actions/download-artifact@v4 with: - name: artifact + name: wheels-* + merge-multiple: true path: dist # Upload tagged versions to production PyPI