Skip to content

Commit

Permalink
👷 misc(release): split maturin build/publish processes
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed Feb 5, 2024
1 parent c2a3044 commit b798857
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,10 @@ jobs:
${{ env.BUILD_MANIFEST_NAME }}
- name: Upload to PyPi
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.MATURIN_PYPI_TOKEN }}
with:
command: publish
command: build
working-directory: pypi
args: --release --sdist --out wheels
sccache: "true"
manylinux: auto

Expand Down Expand Up @@ -278,3 +277,10 @@ jobs:
uses: dtolnay/rust-toolchain@stable
- name: Publish to crates.io
run: cargo publish --locked --token ${{ secrets.CRATES_IO_API_TOKEN }}
- name: Publish to PyPi
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.MATURIN_PYPI_TOKEN }}
with:
command: upload
args: --skip-existing pypi/wheels/*

0 comments on commit b798857

Please sign in to comment.