source distribution
@@ -41,8 +41,7 @@ jobs:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
- pip install twine
- python setup.py sdist bdist_wheel
+ pip wheel . -w dist
twine upload dist/*
continue-on-error: true
complete_coveralls:
@@ -72,3 +71,25 @@ jobs:
pip install twine
twine upload wheelhouse/*-manylinux1_x86_64.whl
continue-on-error: true
+ source-distribution:
+ if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
+ runs-on: ubuntu-latest
+ needs: test
+ steps:
+ - uses: actions/checkout@v1
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Set up build environment
+ steps:
+ run: |
+ pip install cython
+ - name: Publish wheels to PyPI
+ env:
+ TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
+ TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
+ run: |
+ python setup.py sdist
+ twine upload dist/*
+ continue-on-error: true
