Skip to content

Commit 6122470

Browse files
author
Val Brodsky
committed
Update PyPi Publish action to use trusted publisher setup
Username / password not returns http 403
1 parent cf2f0af commit 6122470

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/publish.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ jobs:
1111

1212
runs-on: ubuntu-latest
1313

14+
permissions:
15+
# IMPORTANT: this permission is mandatory for trusted publishing
16+
id-token: write
17+
1418
steps:
1519
- uses: actions/checkout@v2
1620

@@ -28,9 +32,11 @@ jobs:
2832
run: |
2933
python setup.py sdist bdist_wheel
3034
31-
- name: Publish
32-
env:
33-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
34-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
35-
run: |
36-
twine upload dist/*
35+
# - name: Publish
36+
# env:
37+
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
38+
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
39+
# run: |
40+
# twine upload dist/*
41+
- name: Publish package distributions to PyPI
42+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)