Merge pull request #1028 from ToFuProject/devel #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish pip bdist to PyPI - linux | |
| on: | |
| release: | |
| types: | |
| [created] | |
| push: | |
| branches: | |
| - master | |
| - deploy-test | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.9' | |
| - name: Display python version | |
| run: | | |
| python -c "import sys; print(sys.version)" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install setuptools wheel twine | |
| pip install -r requirements.txt | |
| - name: check ref and event | |
| run: | | |
| echo ${{github.ref}} | |
| - name: Build manylinux Python wheels | |
| uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2010_x86_64 | |
| with: | |
| python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310' | |
| build-requirements: 'cython numpy' | |
| - name: Publish wheels to PyPI | |
| env: | |
| TWINE_USERNAME: __token__ | |
| TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
| run: | | |
| twine upload dist/*-manylinux*.whl |