diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index 1daedf0..0db85d5 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -28,12 +28,25 @@ jobs: name: Build source distribution runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.9' + + - name: Install setuptools_scm + run: pip install setuptools_scm + + - name: Get package version from setuptools_scm + run: python -m setuptools_scm - name: Build sdist run: pipx run build --sdist - - uses: actions/upload-artifact@v4 + - name: Upload sdist artifact + uses: actions/upload-artifact@v4 with: name: cibw-sdist path: dist/*.tar.gz