Publish sdist only when OS is Linux in CI (#116)
This commit is contained in:
2
.github/workflows/build-wheels.yaml
vendored
2
.github/workflows/build-wheels.yaml
vendored
@@ -59,12 +59,14 @@ jobs:
|
||||
twine upload ./wheelhouse/*.whl
|
||||
|
||||
- name: Build sdist
|
||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||
shell: bash
|
||||
run: |
|
||||
python3 setup.py sdist
|
||||
ls -l dist/*
|
||||
|
||||
- name: Publish sdist to PyPI
|
||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||
env:
|
||||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||
|
||||
Reference in New Issue
Block a user