Skip to content

Commit 2110446

Browse files
authored
Update python-publish.yml
1 parent 55e04f2 commit 2110446

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/python-publish.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ on:
99

1010
jobs:
1111
deploy:
12-
1312
runs-on: ubuntu-latest
14-
1513
steps:
1614
- uses: actions/checkout@v2
1715
- name: Set up Python
@@ -21,11 +19,16 @@ jobs:
2119
- name: Install dependencies
2220
run: |
2321
python -m pip install --upgrade pip
24-
pip install setuptools wheel twine
25-
- name: Build and publish
22+
pip install setuptools wheel twine numpy
23+
- name: Build manylinux Python wheels
24+
uses: RalfG/python-wheels-manylinux-build@v0.4.2-manylinux2014_x86_64
25+
with:
26+
python-versions: 'cp36-cp36m cp37-cp37m'
27+
build-requirements: 'cython numpy'
28+
- name: Publish wheels to PyPI
2629
env:
2730
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2831
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2932
run: |
30-
python setup.py sdist
31-
twine upload dist/*
33+
twine upload dist/*-manylinux*.whl
34+

0 commit comments

Comments
 (0)