Skip to content

Commit 2d73aa0

Browse files
committed
manylinux
1 parent 6f717ec commit 2d73aa0

File tree

1 file changed

+31
-8
lines changed

1 file changed

+31
-8
lines changed

.github/workflows/python-publish.yml

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,47 @@ on:
88
types: [created]
99

1010
jobs:
11-
deploy:
12-
11+
Linux-build:
1312
runs-on: ubuntu-latest
14-
13+
env:
14+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
15+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
1516
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install setuptools wheel twine cython
23+
24+
- name: build and upload manylinux wheels
25+
uses: Niraj-Kamdar/manylinux-wheel-builder@master
26+
27+
Matrix-build:
28+
runs-on: ${{ matrix.os }}
29+
env:
30+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
31+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
32+
strategy:
33+
matrix:
34+
os: [macos-latest, windows-latest]
35+
python-version: '3.x'
36+
steps:
1637
- uses: actions/checkout@v2
1738
- name: Set up Python
1839
uses: actions/setup-python@v2
1940
with:
20-
python-version: '3.x'
41+
python-version: ${{ matrix.python-version }}
2142
- name: Install dependencies
2243
run: |
2344
python -m pip install --upgrade pip
2445
pip install setuptools wheel twine cython
25-
- name: Build and publish
26-
env:
27-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
46+
- name: build wheel
2947
run: |
48+
pip install wheel
3049
python setup.py sdist bdist_wheel
50+
- name: upload wheel
51+
run: |
52+
pip install twine
3153
twine upload dist/*
54+
continue-on-error: true

0 commit comments

Comments
 (0)