From c2a28fc333f6ba9d4d6627c989e312cff4e7f94a Mon Sep 17 00:00:00 2001 From: Mario Fink Date: Wed, 22 Sep 2021 13:20:46 +0200 Subject: [PATCH] github-workflow: upload/download wheel artifacts for PyPi deployment --- .github/workflows/pypi-deploy.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/pypi-deploy.yml b/.github/workflows/pypi-deploy.yml index 021b68e..1bb739e 100644 --- a/.github/workflows/pypi-deploy.yml +++ b/.github/workflows/pypi-deploy.yml @@ -44,6 +44,11 @@ jobs: working-directory: python/ # env: # 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: name: Build source distribution @@ -61,6 +66,11 @@ jobs: - name: Build sdist run: python setup.py sdist working-directory: python/ + - name: Store binary wheels + uses: actions/upload-artifact@v2 + with: + name: binary-wheels + path: wheelhouse/*.whl upload_pypi: name: Upload binary wheels to PyPI @@ -68,6 +78,11 @@ jobs: needs: [build_wheels, build_sdist] steps: + - name: Get source and binary wheels + uses: actions/download-artifact@v2 + with: + path: dist/ + - uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__