File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 branches :
77 - master
88 tags :
9- - ' * '
9+ - ' v*.*.* ' # Trigger on version tags like v1.0.0
1010
1111jobs :
1212 build-and-publish :
1313 name : Build and publish readit distributions to PyPI
1414 runs-on : ubuntu-latest
15+
1516 steps :
1617 - name : Checkout
1718 uses : actions/checkout@v4
@@ -22,15 +23,18 @@ jobs:
2223 python-version : ' 3.8'
2324 architecture : ' x64'
2425
25- - name : Build Package
26+ - name : Install Dependencies
2627 run : |
27- python -m pip install --upgrade setuptools wheel twine
28- python setup.py sdist bdist_wheel
28+ python -m pip install --upgrade pip
29+ pip install build twine
2930
30- - name : Package check
31+ - name : Build Package with pypa/build
32+ run : python -m build
33+
34+ - name : Check Package
3135 run : twine check dist/*
3236
33- - name : Deploy to PyPi readit
37+ - name : Deploy to PyPI
3438 if : startsWith(github.event.ref, 'refs/tags')
3539 uses : pypa/gh-action-pypi-publish@release/v1
3640 with :
You can’t perform that action at this time.
0 commit comments