File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change 55 tags :
66 - " v*.*.*"
77 workflow_dispatch :
8-
9- permissions :
10- contents : read
11- id-token : write
128
139jobs :
1410 build :
2016 python-version : " 3.10"
2117
2218 - name : Install build backend
23- run : python -m pip install --upgrade pip build
19+ run : python -m pip install --upgrade build twine
2420
2521 - name : Clean old builds
2622 run : rm -rf dist build *.egg-info
@@ -29,12 +25,11 @@ jobs:
2925 run : python -m build
3026
3127 - name : Check distribution metadata
32- run : python -m pip install twine && twine check dist/*
28+ run : twine check dist/*
3329
34- - name : Publish to PyPI
35- uses : pypa/gh-action-pypi-publish@release/v1
36- with :
37- skip-existing : true
38- packages-dir : dist
39- verbose : true
30+ - name : Upload to PyPI
31+ env :
32+ TWINE_USERNAME : __token__
33+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
34+ run : twine upload dist/*
4035
You can’t perform that action at this time.
0 commit comments