PublishOnPyPI: add option 'requirements'

This commit is contained in:
umarcor
2021-11-29 02:26:55 +01:00
parent 7e559b5aeb
commit 39a93ee1d1

View File

@@ -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