File tree Expand file tree Collapse file tree 2 files changed +26
-26
lines changed
Expand file tree Collapse file tree 2 files changed +26
-26
lines changed Original file line number Diff line number Diff line change 11---
22name : Build and upload Python Package
33
4- on :
4+ ' on ' :
55 release :
66 types : [created]
77
@@ -11,22 +11,22 @@ jobs:
1111 environment : deploy # only the deploy environment has `secrets.PYPI_TOKEN`
1212
1313 steps :
14- - uses : actions/checkout@v4
15- - name : Set up Python
16- uses : actions/setup-python@v5
17- with :
14+ - uses : actions/checkout@v4
15+ - name : Set up Python
16+ uses : actions/setup-python@v5
17+ with :
1818 python-version : " 3.10"
19- - name : Install dependencies
20- run : |
21- python -m pip install --upgrade "build>=1.3.0" "twine>=6.1.0"
22- - name : Build package
23- run : |
24- python -m build .
25- - name : Check long description
26- run : python -m twine check dist/*
27- - name : Publish package on PyPI
28- env :
29- TWINE_USERNAME : __token__
30- TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
31- run : |
32- twine upload dist/*
19+ - name : Install dependencies
20+ run : |
21+ python -m pip install --upgrade "build>=1.3.0" "twine>=6.1.0"
22+ - name : Build package
23+ run : |
24+ python -m build .
25+ - name : Check long description
26+ run : python -m twine check dist/*
27+ - name : Publish package on PyPI
28+ env :
29+ TWINE_USERNAME : __token__
30+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
31+ run : |
32+ twine upload dist/*
Original file line number Diff line number Diff line change 11---
22name : Tests
33
4- on :
4+ ' on ' :
55 push :
66 branches :
7- - main
7+ - main
88 pull_request :
99
1010jobs :
@@ -14,11 +14,11 @@ jobs:
1414 fail-fast : false
1515 matrix :
1616 python-version :
17- - " 3.10"
18- - " 3.11"
19- - " 3.12"
20- - " 3.13"
21- - " 3.14.0-rc.2 - 3.14"
17+ - " 3.10"
18+ - " 3.11"
19+ - " 3.12"
20+ - " 3.13"
21+ - " 3.14.0-rc.2 - 3.14"
2222
2323 steps :
2424 - uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments