Skip to content

Merge pull request #965 from ToFuProject/devel #9

Merge pull request #965 from ToFuProject/devel

Merge pull request #965 from ToFuProject/devel #9

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/[email protected]_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