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 77 branches : [main]
88
99permissions :
10+ id-token : write
1011 contents : write
1112
1213jobs :
1314 deploy :
1415 runs-on : ubuntu-latest
1516
1617 steps :
17- - uses : actions/checkout@v3
18+ - uses : actions/checkout@v4
1819 - run : git fetch --depth=1 origin '+refs/tags/*:refs/tags/*'
1920 if : github.event_name == 'push'
2021 continue-on-error : true
2122 - name : Set up Python
22- uses : actions/setup-python@v4
23+ uses : actions/setup-python@v5
2324 with :
2425 python-version : ' 3.12'
2526 - name : Install dependencies
@@ -40,15 +41,11 @@ jobs:
4041 run : pytest -vs -k community
4142 - name : Build package
4243 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
4846 with :
49- user : __token__
50- password : ${{ env.PYPI_API_TOKEN }}
51- - uses : actions/checkout@v3
47+ packages-dir : dist/
48+ - uses : actions/checkout@v4
5249 if : github.event_name == 'release'
5350 with :
5451 ref : main
You can’t perform that action at this time.
0 commit comments