Skip to content

Commit

Permalink
CI: Publish sdist as well as wheels (celiagg#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
corranwebster authored Jul 28, 2023
1 parent 03edc25 commit b76a5dc
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,33 @@ jobs:
python -m pip install twine
python -m twine check --strict wheelhouse/*.whl
python -m twine upload wheelhouse/*.whl
build-sdist:
runs-on: ubuntu-latest

steps:
- name: Check out the release commit
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install Python packages needed for build and upload
run: |
python -m pip install build twine
- name: Build sdist
run: |
python -m build --sdist
- name: Publish to PyPI

env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

run: |
python -m twine check --strict dist/*
python -m twine upload dist/*

0 comments on commit b76a5dc

Please sign in to comment.