Skip to content

Commit

Permalink
Update pyPI upload to use API token based authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivas-E committed Jul 1, 2024
1 parent e8c7403 commit e8f28ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ jobs:
if: startsWith(github.repository, 'MicrochipTech')
uses: pypa/gh-action-pypi-publish@release/v1.5
with:
user: ${{ secrets.pypi_username }}
password: ${{ secrets.pypi_password }}
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true

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

0 comments on commit e8f28ec

Please sign in to comment.