mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
PublishOnPyPI: publish source and wheel in two steps
This commit is contained in:
10
.github/workflows/PublishOnPyPI.yml
vendored
10
.github/workflows/PublishOnPyPI.yml
vendored
@@ -45,8 +45,14 @@ jobs:
|
|||||||
python -m pip install -U pip
|
python -m pip install -U pip
|
||||||
python -m pip install ${{ inputs.requirements }}
|
python -m pip install ${{ inputs.requirements }}
|
||||||
|
|
||||||
- name: ⤴ Release Python package to PyPI
|
- name: ⤴ Release Python source package to PyPI
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: __token__
|
TWINE_USERNAME: __token__
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
||||||
run: twine upload dist/*
|
run: twine upload dist/*.tar.gz
|
||||||
|
|
||||||
|
- name: ⤴ Release Python wheel package to PyPI
|
||||||
|
env:
|
||||||
|
TWINE_USERNAME: __token__
|
||||||
|
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
||||||
|
run: twine upload dist/*.whl
|
||||||
|
|||||||
Reference in New Issue
Block a user