From 8b47139bc72e6ea98cef18a77ae7ba658a4e5f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Fritze?= Date: Wed, 10 Jan 2024 12:47:50 +0100 Subject: [PATCH] new upload+download actions changed behavior wrt multiple artifacts of same name Adjust by explicitly naming uploads and merging in downloads. It's also not possible to use download v3 for upload v4 artifacts --- .github/workflows/release.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 25eba4f..7d8ed0e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -117,6 +117,7 @@ jobs: if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU) with: path: ./wheelhouse/*.whl + name: archive_wheels_${{ matrix.os }}_${{ matrix.arch }}_${{ matrix.skip }} build-sdist: name: Build source distribution @@ -137,6 +138,7 @@ jobs: - uses: actions/upload-artifact@v4 with: path: dist/*.tar.gz + name: archive_sdist test-sdist: name: Test build from source distribution @@ -151,9 +153,9 @@ jobs: with: python-version: '3.9' - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: - name: artifact + name: archive_sdist path: sdist - name: Install from SDist @@ -177,10 +179,11 @@ jobs: if: github.repository_owner == 'ssciwr' steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: - name: artifact + name: archive* path: dist + merge-multiple: true - name: Upload to PyPI uses: pypa/gh-action-pypi-publish@v1.8.11