Skip to content

Commit

Permalink
ci: merge wheel files in intermediate job
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Feb 4, 2024
1 parent c2a0124 commit 28305eb
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,29 @@ jobs:
name: wheels-${{ github.job }}
path: dist

merge:
name: Merge wheels
runs-on: ubuntu-latest
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
path: wheels
- uses: actions/upload-artifact@v4
with:
name: wheels
path: wheels

release:
name: Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: [linux, windows, macos, sdist]
needs: merge
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
name: wheels
path: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
Expand Down

0 comments on commit 28305eb

Please sign in to comment.