File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 9
9
release :
10
10
name : " Release"
11
11
runs-on : " ubuntu-latest"
12
+ permissions :
13
+ # Required for trusted publishing to PyPI
14
+ id-token : write
15
+ contents : write
12
16
13
17
steps :
14
18
# ...
@@ -24,19 +28,17 @@ jobs:
24
28
files : |
25
29
LICENSE.txt
26
30
27
- # Publish to PyPI
28
- - uses : actions/checkout@v2
31
+ # Publish to PyPI using Trusted Publishers
32
+ - uses : actions/checkout@v3
29
33
- name : Set up Python
30
- uses : actions/setup-python@v2
34
+ uses : actions/setup-python@v4
31
35
with :
32
36
python-version : ' 3.x'
33
37
- name : Install dependencies
34
38
run : |
35
39
python -m pip install --upgrade pip
36
- pip install build twine
40
+ pip install build
37
41
- name : Build package
38
42
run : python -m build
39
43
- name : Publish to PyPI
40
- uses : pypa/gh-action-pypi-publish@release/v1
41
- with :
42
- password : ${{ secrets.PYPI_API_TOKEN }}
44
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments