@@ -16,7 +16,7 @@ To use the action add the following step to your workflow file (e.g.
16
16
uses : pypa/gh-action-pypi-publish@master
17
17
with :
18
18
user : __token__
19
- password : ${{ secrets.pypi_password }}
19
+ password : ${{ secrets.PYPI_API_TOKEN }}
20
20
` ` `
21
21
22
22
> **Pro tip**: instead of using branch pointers, like ` master`, pin versions of
@@ -41,13 +41,13 @@ So the full step would look like:
41
41
uses: pypa/gh-action-pypi-publish@master
42
42
with:
43
43
user: __token__
44
- password: ${{ secrets.pypi_password }}
44
+ password: ${{ secrets.PYPI_API_TOKEN }}
45
45
` ` `
46
46
47
47
The example above uses the new [API token][PyPI API token] feature of
48
48
PyPI, which is recommended to restrict the access the action has.
49
49
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
51
51
settings page of your project on GitHub. See [Creating & using secrets].
52
52
53
53
@@ -81,7 +81,7 @@ The action invocation in this case would look like:
81
81
uses: pypa/gh-action-pypi-publish@master
82
82
with:
83
83
user: __token__
84
- password: ${{ secrets.test_pypi_password }}
84
+ password: ${{ secrets.TEST_PYPI_API_TOKEN }}
85
85
repository_url: https://test.pypi.org/legacy/
86
86
` ` `
87
87
@@ -96,7 +96,7 @@ would now look like:
96
96
uses: pypa/gh-action-pypi-publish@master
97
97
with:
98
98
user: __token__
99
- password: ${{ secrets.pypi_password }}
99
+ password: ${{ secrets.PYPI_API_TOKEN }}
100
100
packages_dir: custom-dir/
101
101
` ` `
102
102
0 commit comments