mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-13 03:26:55 +08:00
PublishOnPyPI: add option 'requirements'
This commit is contained in:
12
.github/workflows/PublishOnPyPI.yml
vendored
12
.github/workflows/PublishOnPyPI.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user