mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-15 20:46: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
|
required: false
|
||||||
default: '3.10'
|
default: '3.10'
|
||||||
type: string
|
type: string
|
||||||
|
requirements:
|
||||||
|
description: 'Python dependencies to be installed through pip.'
|
||||||
|
required: false
|
||||||
|
default: 'wheel twine'
|
||||||
|
type: string
|
||||||
artifact:
|
artifact:
|
||||||
description: 'Name of the wheel artifact.'
|
description: 'Name of the wheel artifact.'
|
||||||
required: true
|
required: true
|
||||||
@@ -37,15 +42,14 @@ jobs:
|
|||||||
|
|
||||||
- name: ⚙ Install dependencies for packaging and release
|
- name: ⚙ Install dependencies for packaging and release
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install -U pip
|
||||||
pip install wheel twine
|
python -m pip install ${{ inputs.requirements }}
|
||||||
|
|
||||||
- name: ⤴ Release Python package to PyPI
|
- name: ⤴ Release Python package to PyPI
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: __token__
|
TWINE_USERNAME: __token__
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
||||||
run: |
|
run: twine upload dist/*
|
||||||
twine upload dist/*
|
|
||||||
|
|
||||||
- name: 🗑️ Delete packaging Artifacts
|
- name: 🗑️ Delete packaging Artifacts
|
||||||
uses: geekyeggo/delete-artifact@v1
|
uses: geekyeggo/delete-artifact@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user