From b40428f40ea6863317bc7270bac9a357330c3eea Mon Sep 17 00:00:00 2001 From: Jiri Kerestes Date: Mon, 14 Sep 2026 12:40:40 +0200 Subject: [PATCH] fix(ci): Upload sdist package --- .github/workflows/deploy.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f2275e7..6ce20e2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,7 +43,7 @@ jobs: uses: PyO3/maturin-action@v1 with: command: publish - args: --username=__token__ ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7' && '' || '--no-sdist' }} --interpreter=python${{ !startsWith(matrix.os, 'windows') && matrix.python-version || '' }} + args: --username=__token__ --no-sdist --skip-existing --interpreter=python${{ matrix.python-version }} env: MATURIN_PASSWORD: ${{ secrets.pypi_password }} if: matrix.os != 'macos-latest' @@ -52,7 +52,7 @@ jobs: uses: PyO3/maturin-action@v1 with: command: publish - args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=x86_64-apple-darwin --no-sdist + args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=x86_64-apple-darwin --no-sdist --skip-existing env: MATURIN_PASSWORD: ${{ secrets.pypi_password }} - name: Publish macOS (arm64) Package @@ -60,7 +60,7 @@ jobs: uses: PyO3/maturin-action@v1 with: command: publish - args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=aarch64-apple-darwin --no-sdist + args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=aarch64-apple-darwin --no-sdist --skip-existing env: MATURIN_PASSWORD: ${{ secrets.pypi_password }} - name: Publish Linux (arm64) Package @@ -68,7 +68,7 @@ jobs: uses: PyO3/maturin-action@v1 with: command: publish - args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=aarch64-unknown-linux-gnu --no-sdist + args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=aarch64-unknown-linux-gnu --no-sdist --skip-existing env: MATURIN_PASSWORD: ${{ secrets.pypi_password }} dist-source: @@ -76,9 +76,15 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Distribute Source + - name: Build Source Distribution uses: PyO3/maturin-action@v1 with: command: sdist + args: --out dist + - name: Publish Source Distribution + uses: PyO3/maturin-action@v1 + with: + command: upload + args: --username=__token__ --non-interactive --skip-existing dist/*.tar.gz env: MATURIN_PASSWORD: ${{ secrets.pypi_password }}