Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 22ba1ff

Browse files
committed
Separate build and publish sections in workflow
1 parent ee57978 commit 22ba1ff

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/python-publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@ jobs:
2222
git submodule update --init
2323
python -m pip install --upgrade pip
2424
pip install setuptools numpy Cython wheel twine
25-
- name: Build and publish
26-
env:
27-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
25+
- name: Build manylinux Python wheels
2926
uses: RalfG/python-wheels-manylinux-build@v0.3.3
3027
with:
3128
python-versions: "cp38-cp38"
29+
build-requirements: "Cython numpy"
30+
- name: Publsih to PyPI
31+
env:
32+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
33+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
3234
run: |
33-
python setup.py sdist bdist_wheel
35+
python setup.py sdist
3436
twine upload dist/*-manylinux*.whl
3537
twine upload dist/*.tar.gz

0 commit comments

Comments
 (0)