From d8323e98c4f451bc0adacb594f4f29fe39bd5519 Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Wed, 4 Sep 2024 15:12:28 +0200 Subject: [PATCH] Update upload/download action to `v4`. (#369) * Update upload/download action to `v4`. * Make artifact names unique. See https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md * Also make `matrix.os` part of the name. --- .github/workflows/publish-sdist-wheels.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-sdist-wheels.yml b/.github/workflows/publish-sdist-wheels.yml index 8f4e1a06..60ab0de8 100644 --- a/.github/workflows/publish-sdist-wheels.yml +++ b/.github/workflows/publish-sdist-wheels.yml @@ -95,9 +95,9 @@ jobs: python -m cibuildwheel --output-dir dist - name: Store wheel as artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: dist + name: dist-wheels-${{ matrix.os }} path: dist/*.whl build_sdist: @@ -125,9 +125,9 @@ jobs: ./ci/python_build_sdist.sh - name: Store sdist as artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: dist + name: dist-sdist path: dist/*.tar.gz upload_artifacts: @@ -139,10 +139,11 @@ jobs: steps: - name: Download artifacts produced during the build_wheels and build_sdist jobs - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: dist + name: dist-* path: dist/ + merge-multiple: true - name: Display structure of downloaded files run: ls -R