File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 6
6
build-n-publish :
7
7
name : Build and publish to PyPI
8
8
runs-on : ubuntu-latest
9
+ permissions :
10
+ # IMPORTANT: this permission is mandatory for trusted publishing
11
+ id-token : write
9
12
steps :
10
13
- uses : actions/checkout@v4
11
14
with :
25
28
- name : Publish distribution to PyPI
26
29
if : startsWith(github.ref, 'refs/tags')
27
30
uses : pypa/gh-action-pypi-publish@release/v1
28
- with :
29
- password : ${{ secrets.PYPI_PASSWORD }}
Original file line number Diff line number Diff line change 6
6
build-n-publish :
7
7
name : Build and publish to Test PyPI
8
8
runs-on : ubuntu-latest
9
+ permissions :
10
+ # IMPORTANT: this permission is mandatory for trusted publishing
11
+ id-token : write
9
12
steps :
10
13
- uses : actions/checkout@v4
11
14
with :
25
28
- name : Publish distribution to Test PyPI
26
29
uses : pypa/gh-action-pypi-publish@release/v1
27
30
with :
28
- password : ${{ secrets.TEST_PYPI_PASSWORD }}
29
- repository_url : https://test.pypi.org/legacy/
31
+ repository-url : https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments