github-workflow: upload/download wheel artifacts for PyPi deployment

This commit is contained in:
Mario Fink 2021-09-22 13:20:46 +02:00
parent 71cbe31915
commit c2a28fc333

View File

@ -44,6 +44,11 @@ jobs:
working-directory: python/ working-directory: python/
# env: # env:
# CIBW_BUILD: cp36-* cp37-* cp38-* cp39-* cp310-* # CIBW_BUILD: cp36-* cp37-* cp38-* cp39-* cp310-*
- name: Store source wheels
uses: actions/upload-artifact@v2
with:
name: source-wheels
path: dist/*.tar.gz
build_sdist: build_sdist:
name: Build source distribution name: Build source distribution
@ -61,6 +66,11 @@ jobs:
- name: Build sdist - name: Build sdist
run: python setup.py sdist run: python setup.py sdist
working-directory: python/ working-directory: python/
- name: Store binary wheels
uses: actions/upload-artifact@v2
with:
name: binary-wheels
path: wheelhouse/*.whl
upload_pypi: upload_pypi:
name: Upload binary wheels to PyPI name: Upload binary wheels to PyPI
@ -68,6 +78,11 @@ jobs:
needs: [build_wheels, build_sdist] needs: [build_wheels, build_sdist]
steps: steps:
- name: Get source and binary wheels
uses: actions/download-artifact@v2
with:
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1 - uses: pypa/gh-action-pypi-publish@release/v1
with: with:
user: __token__ user: __token__