Skip to content

Commit

Permalink
build sdist
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Oct 20, 2023
1 parent f2e704d commit 214cbb6
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'
Expand Down

0 comments on commit 214cbb6

Please # to comment.