From b5279e944f1603a9608cfb988ae06e2948b19939 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Thu, 5 Sep 2024 13:08:49 -0600 Subject: [PATCH] Remove overwrite from upload-artifact It appears this is causing some wheels to not get uploaded to pypi. --- .github/workflows/build.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cef6cea..b1a4a63 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,8 +42,8 @@ jobs: - uses: pypa/cibuildwheel@v2.20.0 - uses: actions/upload-artifact@v4 with: + name: artifact-wheel-${{ matrix.os }} path: wheelhouse/*.whl - overwrite: true make_sdist: runs-on: "ubuntu-latest" @@ -54,11 +54,22 @@ jobs: python -m build --no-isolation --sdist - uses: actions/upload-artifact@v4 with: + name: artifact-sdist path: dist/*.tar.gz - overwrite: true - upload_all: + merge: + runs-on: ubuntu-latest needs: [build_wheels, make_sdist] + steps: + - name: Merge Artifacts + uses: actions/upload-artifact/merge@v4 + with: + name: artifact + pattern: artifact-* + delete-merged: true + + upload_all: + needs: merge runs-on: "ubuntu-latest" environment: release if: github.event_name == 'release' && github.event.action == 'published'