diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index 3bcecfa3d..2ca5e9a05 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -45,9 +45,22 @@ jobs: name: pypi-artifacts path: ${{ github.workspace }}/wheelhouse/*.whl + build_sdist: + name: Build source distribution + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Build sdist + run: > + pip install build + && python -m build --sdist . --outdir dist + - uses: actions/upload-artifact@v3 + with: + path: dist/*.tar.gz show-artifacts: - needs: [build_bdist] + needs: [build_bdist, build_sdist] name: "Show artifacts" runs-on: ubuntu-latest steps: @@ -62,7 +75,7 @@ jobs: publish-artifacts-pypi: - needs: [build_bdist] + needs: [build_bdist, build_sdist] name: "Publish to PyPI" runs-on: ubuntu-latest # upload to PyPI for every tag starting with 'v'