updated python publish workflow to support pypi 2fa
Signed-off-by: Amit Sharma <amit_sharma@live.com>
This commit is contained in:
Родитель
b3aaeb52f8
Коммит
56d3fc27f1
|
@ -6,12 +6,15 @@ name: Publish Package
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [created]
|
types: [created]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
name: Upload release to PyPI
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
environment: release
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
@ -35,4 +38,5 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
poetry-dynamic-versioning
|
poetry-dynamic-versioning
|
||||||
poetry build
|
poetry build
|
||||||
poetry publish --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}
|
- name: Publish package distributions to PyPI
|
||||||
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
|
Загрузка…
Ссылка в новой задаче