Skip to content

Commit

Permalink
Add sdist build
Browse files Browse the repository at this point in the history
  • Loading branch information
theCapypara committed Jul 20, 2024
1 parent 028a458 commit a45dbc1
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@ jobs:
name: Event File
path: ${{ github.event_path }}

build-sdist:
name: Build SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build SDist
run: pipx run build --sdist
- uses: actions/upload-artifact@v4
with:
name: wheels-sdist
path: dist/*.tar.gz

build:
runs-on: ${{ matrix.os }}
name: Build Wheels
Expand Down Expand Up @@ -197,6 +209,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
needs:
- build
- build-sdist
- test
- typechecks
runs-on: ubuntu-latest
Expand All @@ -217,4 +230,4 @@ jobs:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload wheels*/*.whl
twine upload wheels*/*.whl wheels*/*.tar.gz

0 comments on commit a45dbc1

Please sign in to comment.