From 3a18e610036c49f26238014fe2eb07a1d8f5c6c2 Mon Sep 17 00:00:00 2001 From: Roger Binns Date: Mon, 15 Jan 2024 15:52:12 -0800 Subject: [PATCH] Fix upload-artifact@v4 changes Error message was [error]Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run Following instructions at https://github.com/actions/upload-artifact/issues/478#issuecomment-1885470013 --- .github/workflows/build-testpypi.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-testpypi.yml b/.github/workflows/build-testpypi.yml index 3b99a7ae..611f3235 100644 --- a/.github/workflows/build-testpypi.yml +++ b/.github/workflows/build-testpypi.yml @@ -24,6 +24,7 @@ jobs: - uses: actions/upload-artifact@v4 with: + name: dist-${{ matrix.os }} path: ./wheelhouse/*.whl @@ -53,6 +54,7 @@ jobs: - uses: actions/upload-artifact@v4 with: + name: dist-qemu-${{ matrix.arch }} path: ./wheelhouse/*.whl @@ -67,6 +69,7 @@ jobs: - uses: actions/upload-artifact@v4 with: + name: dist-source path: ./dist/* pypi_publish: @@ -79,7 +82,8 @@ jobs: - name: Stage wheels uses: actions/download-artifact@v4 with: - name: artifact + pattern: dist-* + merge-multiple: true path: dist - name: Publish package