diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index bb9fe2c..50351e5 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -19,3 +19,22 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl + # create the source distribution + make_sdist: + name: Make SDist + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Optional, use if you use setuptools_scm + submodules: true # Optional, use if you have submodules + + - name: Build SDist + run: | + pip install build + pip install -e . + python -m build --sdist + + - uses: actions/upload-artifact@v3 + with: + path: dist/*.tar.gz