Skip to content

Commit 87a2855

Browse files
authored
Merge pull request #2 from anurag03/oidc
Chaning the authentication method to upload to pypi
2 parents 7498706 + 5e6ee63 commit 87a2855

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ jobs:
2626
run: |
2727
python -m build
2828
29-
- name: Publish package to PyPI
29+
- name: Publish package to PyPI (Trusted Publishing)
3030
uses: pypa/gh-action-pypi-publish@v1.8.12
3131
with:
32-
user: __token__
33-
password: ${{ secrets.PYPI_API_TOKEN }}
32+
repository_url: https://upload.pypi.org/legacy/
33+
env:
34+
PYPI_TRUSTED_PUBLISHING: true

0 commit comments

Comments
 (0)