Skip to content

Commit

Permalink
Separate out individual wheel uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb committed Feb 19, 2024
1 parent 27f57a9 commit 5183556
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand Down Expand Up @@ -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') }}
Expand Down Expand Up @@ -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') }}
Expand All @@ -162,7 +162,7 @@ jobs:
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: wheels
name: sdist
path: dist

release:
Expand All @@ -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:
Expand Down

0 comments on commit 5183556

Please sign in to comment.