From 80eccf3b6203cbc303368e8764680944f167961a Mon Sep 17 00:00:00 2001 From: Paul Goulart Date: Tue, 26 Sep 2023 22:53:22 +0100 Subject: [PATCH] Add sdist to pypi build (#57) * update maturin config * build sdist --- .github/workflows/pypi.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/pypi.yaml b/.github/workflows/pypi.yaml index e3d0271a..ab5d28a1 100644 --- a/.github/workflows/pypi.yaml +++ b/.github/workflows/pypi.yaml @@ -140,6 +140,27 @@ jobs: name: wheels path: dist + sdist: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ env.PYTHON_VERSION }} + + - name: Build sdist + uses: PyO3/maturin-action@v1 + with: + command: sdist + manylinux: auto + args: --out dist + + - name: Upload sdist + uses: actions/upload-artifact@v3 + with: + name: sdist + path: dist + release: name: Release