Skip to content

Commit a23b5d1

Browse files
authored
Merge pull request #51 from mwcraig/skip-linux-wheels
Fix wheels on linux yet
2 parents f0a1d0e + 94a5fe5 commit a23b5d1

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/upload_pypi.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
python-version: [3.6, 3.7, 3.8]
15-
platform: [ubuntu-latest, macos-latest, windows-latest]
15+
platform: [macos-latest, windows-latest] # No wheels on linux yet
1616
runs-on: ${{ matrix.platform }}
1717

1818
steps:
@@ -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)