Skip to content

Commit e8f28ec

Browse files
committed
Update pyPI upload to use API token based authentication
1 parent e8c7403 commit e8f28ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,15 @@ jobs:
103103
if: startsWith(github.repository, 'MicrochipTech')
104104
uses: pypa/gh-action-pypi-publish@release/v1.5
105105
with:
106-
user: ${{ secrets.pypi_username }}
107-
password: ${{ secrets.pypi_password }}
106+
user: __token__
107+
password: ${{ secrets.PYPI_API_TOKEN }}
108108
skip_existing: true
109109

110110
- name: Test Release
111111
if: ${{ !startsWith(github.repository, 'MicrochipTech') }}
112112
uses: pypa/gh-action-pypi-publish@release/v1.5
113113
with:
114-
user: ${{ secrets.pypi_username }}
115-
password: ${{ secrets.pypi_password }}
114+
user: __token__
115+
password: ${{ secrets.PYPI_API_TOKEN }}
116116
repository_url: https://test.pypi.org/legacy/
117117
skip_existing: true

0 commit comments

Comments
 (0)