diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d38cb4..6fc0726 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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/*