From b141c8c0ef1370a40c9d9c22ea52c0ea0d1af21f Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 29 Nov 2021 22:41:54 +0100 Subject: [PATCH] PublishOnPyPI: publish source and wheel in two steps --- .github/workflows/PublishOnPyPI.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/PublishOnPyPI.yml b/.github/workflows/PublishOnPyPI.yml index eb4c702..04cca8f 100644 --- a/.github/workflows/PublishOnPyPI.yml +++ b/.github/workflows/PublishOnPyPI.yml @@ -45,8 +45,14 @@ jobs: python -m pip install -U pip python -m pip install ${{ inputs.requirements }} - - name: ⤴ Release Python package to PyPI + - name: ⤴ Release Python source package to PyPI env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} - run: twine upload dist/* + run: twine upload dist/*.tar.gz + + - name: ⤴ Release Python wheel package to PyPI + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + run: twine upload dist/*.whl