From 51835564378094cebba91c6b6a9de8d0468de58e Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Mon, 19 Feb 2024 22:50:53 +0100 Subject: [PATCH] Separate out individual wheel uploads --- .github/workflows/ci.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1990737..432e6ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,7 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: wheels + name: linux-wheels path: dist - name: pytest if: ${{ startsWith(matrix.target, 'x86_64') }} @@ -103,7 +103,7 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: wheels + name: windows-wheels path: dist - name: pytest if: ${{ !startsWith(matrix.target, 'aarch64') }} @@ -138,7 +138,7 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: wheels + name: macos-wheels path: dist - name: pytest if: ${{ !startsWith(matrix.target, 'aarch64') }} @@ -162,7 +162,7 @@ jobs: - name: Upload sdist uses: actions/upload-artifact@v4 with: - name: wheels + name: sdist path: dist release: @@ -171,9 +171,24 @@ jobs: if: "startsWith(github.ref, 'refs/tags/')" needs: [linux, windows, macos, sdist] steps: + # Combine all the wheels and sdists into a single directory + - name: Download artifacts + uses: actions/download-artifact@v4 + with: + name: linux-wheels + path: dist + - uses: actions/download-artifact@v4 + with: + name: windows-wheels + path: dist - uses: actions/download-artifact@v4 with: - name: wheels + name: macos-wheels + path: dist + - uses: actions/download-artifact@v4 + with: + name: sdist + path: dist - name: Publish to PyPI uses: PyO3/maturin-action@v1 env: