File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 7
7
branches : [main]
8
8
9
9
permissions :
10
+ id-token : write
10
11
contents : write
11
12
12
13
jobs :
13
14
deploy :
14
15
runs-on : ubuntu-latest
15
16
16
17
steps :
17
- - uses : actions/checkout@v3
18
+ - uses : actions/checkout@v4
18
19
- run : git fetch --depth=1 origin '+refs/tags/*:refs/tags/*'
19
20
if : github.event_name == 'push'
20
21
continue-on-error : true
21
22
- name : Set up Python
22
- uses : actions/setup-python@v4
23
+ uses : actions/setup-python@v5
23
24
with :
24
25
python-version : ' 3.12'
25
26
- name : Install dependencies
@@ -40,15 +41,11 @@ jobs:
40
41
run : pytest -vs -k community
41
42
- name : Build package
42
43
run : python -m build
43
- - name : Publish package
44
- env :
45
- PYPI_API_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
46
- if : ${{ env.PYPI_API_TOKEN != '' }}
47
- uses : pypa/gh-action-pypi-publish@release/v1.5
44
+ - name : Publish release distributions to PyPI
45
+ uses : pypa/gh-action-pypi-publish@release/v1
48
46
with :
49
- user : __token__
50
- password : ${{ env.PYPI_API_TOKEN }}
51
- - uses : actions/checkout@v3
47
+ packages-dir : dist/
48
+ - uses : actions/checkout@v4
52
49
if : github.event_name == 'release'
53
50
with :
54
51
ref : main
You can’t perform that action at this time.
0 commit comments