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