@@ -16,7 +16,7 @@ To use the action add the following step to your workflow file (e.g.
1616 uses : pypa/gh-action-pypi-publish@master
1717 with :
1818 user : __token__
19- password : ${{ secrets.pypi_password }}
19+ password : ${{ secrets.PYPI_API_TOKEN }}
2020` ` `
2121
2222> **Pro tip**: instead of using branch pointers, like ` master`, pin versions of
@@ -41,13 +41,13 @@ So the full step would look like:
4141 uses: pypa/gh-action-pypi-publish@master
4242 with:
4343 user: __token__
44- password: ${{ secrets.pypi_password }}
44+ password: ${{ secrets.PYPI_API_TOKEN }}
4545` ` `
4646
4747The example above uses the new [API token][PyPI API token] feature of
4848PyPI, which is recommended to restrict the access the action has.
4949
50- The secret used in `${{ secrets.pypi_password }}` needs to be created on the
50+ The secret used in `${{ secrets.PYPI_API_TOKEN }}` needs to be created on the
5151settings page of your project on GitHub. See [Creating & using secrets].
5252
5353
@@ -81,7 +81,7 @@ The action invocation in this case would look like:
8181 uses: pypa/gh-action-pypi-publish@master
8282 with:
8383 user: __token__
84- password: ${{ secrets.test_pypi_password }}
84+ password: ${{ secrets.TEST_PYPI_API_TOKEN }}
8585 repository_url: https://test.pypi.org/legacy/
8686` ` `
8787
@@ -96,7 +96,7 @@ would now look like:
9696 uses: pypa/gh-action-pypi-publish@master
9797 with:
9898 user: __token__
99- password: ${{ secrets.pypi_password }}
99+ password: ${{ secrets.PYPI_API_TOKEN }}
100100 packages_dir: custom-dir/
101101` ` `
102102
0 commit comments