File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 31
31
runs-on : ubuntu-latest
32
32
needs : [build]
33
33
environment : test-pypi
34
+ permissions :
35
+ # this permission is mandatory for trusted publishing
36
+ id-token : write
34
37
steps :
35
38
- uses : actions/download-artifact@v3
36
39
with :
@@ -39,14 +42,16 @@ jobs:
39
42
- name : Publish packages to Test PyPI
40
43
uses : pypa/gh-action-pypi-publish@release/v1
41
44
with :
42
- password : ' ${{ secrets.TEST_PYPI_API_TOKEN }}'
43
45
repository_url : https://test.pypi.org/legacy/
44
46
print_hash : true
45
47
publish-to-pypi :
46
48
name : Publish packages to PyPI
47
49
runs-on : ubuntu-latest
48
50
needs : [build]
49
51
environment : pypi
52
+ permissions :
53
+ # this permission is mandatory for trusted publishing
54
+ id-token : write
50
55
steps :
51
56
- uses : actions/download-artifact@v3
52
57
with :
55
60
- name : Publish packages to PyPI
56
61
uses : pypa/gh-action-pypi-publish@release/v1
57
62
with :
58
- password : ' ${{ secrets.PYPI_API_TOKEN }}'
59
63
print_hash : true
You can’t perform that action at this time.
0 commit comments