Skip to content

Commit 94a5fe5

Browse files
committed
Add wheels on linux
1 parent 033df3e commit 94a5fe5

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/upload_pypi.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,31 @@ jobs:
3737
python setup.py bdist_wheel
3838
twine upload dist/*
3939
40+
linux_wheels:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v1
44+
- name: Set up Python
45+
uses: actions/setup-python@v1
46+
with:
47+
python-version: 3.8
48+
- name: Install dependencies
49+
run: |
50+
python -m pip install --upgrade pip
51+
pip install twine
52+
- name: Python wheels manylinux build
53+
uses: RalfG/[email protected]
54+
with:
55+
python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38'
56+
build-requirements: 'setuptools cython'
57+
- name: Build and publish wheel
58+
env:
59+
TWINE_USERNAME: __token__
60+
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_TOKEN }}
61+
run: |
62+
python setup.py bdist_wheel
63+
twine upload wheelhouse/*-manylinux1_x86_64.whl
64+
4065
sdist:
4166
runs-on: ubuntu-latest
4267
steps:

0 commit comments

Comments
 (0)