Skip to content

Commit 0ad4bc7

Browse files
committed
Accoring to pypi, when using a token, your username should be __token__, I found I had to add this for the tutorial to work properly. Otherwise flawless, thank you!
1 parent d52d00d commit 0ad4bc7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

source/guides/github-actions-ci-cd-sample/publish-to-test-pypi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ jobs:
3131
- name: Publish distribution 📦 to Test PyPI
3232
uses: pypa/gh-action-pypi-publish@master
3333
with:
34+
username: __token__
3435
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
3536
repository_url: https://test.pypi.org/legacy/
3637
- name: Publish distribution 📦 to PyPI
3738
if: startsWith(github.ref, 'refs/tags')
3839
uses: pypa/gh-action-pypi-publish@master
3940
with:
41+
username: __token__
4042
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)