From 0ad4bc710a3f5a2cf333b23e7faaaa843bbc818e Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 4 Jan 2022 19:44:47 -0500 Subject: [PATCH] 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! --- .../guides/github-actions-ci-cd-sample/publish-to-test-pypi.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/guides/github-actions-ci-cd-sample/publish-to-test-pypi.yml b/source/guides/github-actions-ci-cd-sample/publish-to-test-pypi.yml index c24d08091..408f6d43d 100644 --- a/source/guides/github-actions-ci-cd-sample/publish-to-test-pypi.yml +++ b/source/guides/github-actions-ci-cd-sample/publish-to-test-pypi.yml @@ -31,10 +31,12 @@ jobs: - name: Publish distribution 📦 to Test PyPI uses: pypa/gh-action-pypi-publish@master with: + username: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository_url: https://test.pypi.org/legacy/ - name: Publish distribution 📦 to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: + username: __token__ password: ${{ secrets.PYPI_API_TOKEN }}