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'