File tree 1 file changed +5
-7
lines changed 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 13
13
jobs :
14
14
publish :
15
15
runs-on : ubuntu-latest
16
+ permissions :
17
+ # IMPORTANT: this permission is mandatory for trusted publishing
18
+ id-token : write
16
19
steps :
17
20
- uses : actions/checkout@v3
18
21
- uses : actions/setup-python@v4
@@ -35,15 +38,10 @@ jobs:
35
38
run : |
36
39
python build_tools/github/check_wheels.py
37
40
- name : Publish package to TestPyPI
38
- uses : pypa/gh-action-pypi-publish@v1.4.1
41
+ uses : pypa/gh-action-pypi-publish@v1.8.5
39
42
with :
40
- user : __token__
41
- password : ${{ secrets.TEST_PYPI_TOKEN }}
42
43
repository_url : https://test.pypi.org/legacy/
43
44
if : ${{ github.event.inputs.pypi_repo == 'testpypi' }}
44
45
- name : Publish package to PyPI
45
- uses : pypa/gh-action-pypi-publish@v1.4.1
46
- with :
47
- user : __token__
48
- password : ${{ secrets.PYPI_TOKEN }}
46
+ uses : pypa/gh-action-pypi-publish@v1.8.5
49
47
if : ${{ github.event.inputs.pypi_repo == 'pypi' }}
You can’t perform that action at this time.
0 commit comments