From 39a93ee1d1b50aa79e2f2d5fb67ef408b8a0167a Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 29 Nov 2021 02:26:55 +0100 Subject: [PATCH] PublishOnPyPI: add option 'requirements' --- .github/workflows/PublishOnPyPI.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/PublishOnPyPI.yml b/.github/workflows/PublishOnPyPI.yml index 5f9dbac..948f0c5 100644 --- a/.github/workflows/PublishOnPyPI.yml +++ b/.github/workflows/PublishOnPyPI.yml @@ -8,6 +8,11 @@ on: required: false default: '3.10' type: string + requirements: + description: 'Python dependencies to be installed through pip.' + required: false + default: 'wheel twine' + type: string artifact: description: 'Name of the wheel artifact.' required: true @@ -37,15 +42,14 @@ jobs: - name: ⚙ Install dependencies for packaging and release run: | - python -m pip install --upgrade pip - pip install wheel twine + python -m pip install -U pip + python -m pip install ${{ inputs.requirements }} - name: ⤴ Release Python package to PyPI env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} - run: | - twine upload dist/* + run: twine upload dist/* - name: 🗑️ Delete packaging Artifacts uses: geekyeggo/delete-artifact@v1