File tree Expand file tree Collapse file tree 1 file changed +25
-18
lines changed
Expand file tree Collapse file tree 1 file changed +25
-18
lines changed Original file line number Diff line number Diff line change @@ -17,23 +17,30 @@ permissions:
1717
1818jobs :
1919 deploy :
20-
2120 runs-on : ubuntu-latest
22-
21+ environment :
22+ name : pypi
23+ url : https://pypi.org/project/pytppi
24+ permissions :
25+ id-token : write
2326 steps :
24- - uses : actions/checkout@v4
25- - name : Set up Python
26- uses : actions/setup-python@v3
27- with :
28- python-version : ' 3.x'
29- - name : Install dependencies
30- run : |
31- python -m pip install --upgrade pip
32- pip install build
33- - name : Build package
34- run : python -m build
35- - name : Publish package
36- uses : pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
37- with :
38- user : __token__
39- password : ${{ secrets.PYPI_API_TOKEN }}
27+ - uses : actions/checkout@v4
28+ - name : Set up Python
29+ uses : actions/setup-python@v5
30+ with :
31+ python-version : " 3.x"
32+ - name : Install dependencies
33+ run : |
34+ python -m pip install --upgrade pip
35+ pip install build twine
36+ - name : Build package
37+ run : python -m build --wheel --sdist
38+ - name : Check with twine
39+ run : python -m twine check dist/*
40+ - name : Publish package
41+ uses : pypa/gh-action-pypi-publish@release/v1
42+ with :
43+ verify-metadata : true
44+ print-hash : true
45+ user : __token__
46+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments