File tree Expand file tree Collapse file tree 1 file changed +24
-23
lines changed Expand file tree Collapse file tree 1 file changed +24
-23
lines changed Original file line number Diff line number Diff line change 4
4
name : Release
5
5
6
6
on :
7
- push :
8
- branches :
9
- - main
7
+ push :
8
+ branches :
9
+ - main
10
10
11
11
jobs :
12
- build-and-publish :
13
- runs-on : ubuntu-latest
14
- permissions :
15
- # IMPORTANT: this permission is mandatory for trusted publishing
16
- id-token : write
17
- steps :
18
- - name : Checkout
19
- uses : actions/checkout@v3
20
- - name : Set up Python
21
- uses : actions/setup-python@v4
22
- with :
23
- python-version : ' 3.x'
24
- - name : Install build dependencies
25
- run : python -m pip install -U setuptools wheel build
26
- - name : Build
27
- run : python -m build .
28
- - name : Publish
29
- uses : pypa/gh-action-pypi-publish@release/v1
30
- with :
31
- skip-existing : true
12
+ build-and-publish :
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ # IMPORTANT: this permission is mandatory for trusted publishing
16
+ id-token : write
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v3
20
+ - name : Set up Python
21
+ uses : actions/setup-python@v4
22
+ with :
23
+ python-version : ' 3.x'
24
+ - name : Install build dependencies
25
+ run : python -m pip install -U setuptools wheel build
26
+ - name : Build
27
+ run : python -m build .
28
+ - name : Publish
29
+ uses : pypa/gh-action-pypi-publish@release/v1
30
+ with :
31
+ skip-existing : true
32
+ token : ${{ secrets.PYPI_TOKEN }} # Add this line
You can’t perform that action at this time.
0 commit comments