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:
|
||||
release:
|
||||
types: [created]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
|
||||
name: Upload release to PyPI
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
environment: release
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
@ -35,4 +38,5 @@ jobs:
|
|||
run: |
|
||||
poetry-dynamic-versioning
|
||||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче