Skip to content

Commit 56d3fc2

Browse files
amit-sharmabloebp
authored andcommitted
updated python publish workflow to support pypi 2fa
Signed-off-by: Amit Sharma <amit_sharma@live.com>
1 parent b3aaeb5 commit 56d3fc2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/python-publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ name: Publish Package
66
on:
77
release:
88
types: [created]
9+
workflow_dispatch:
910

1011
jobs:
1112
deploy:
12-
13+
name: Upload release to PyPI
1314
runs-on: ubuntu-latest
14-
15+
environment: release
16+
permissions:
17+
id-token: write
1518
steps:
1619
- uses: actions/checkout@v4
1720

@@ -35,4 +38,5 @@ jobs:
3538
run: |
3639
poetry-dynamic-versioning
3740
poetry build
38-
poetry publish --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}
41+
- name: Publish package distributions to PyPI
42+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)