File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish to PyPI
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ deploy :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+
18+ - name : Set up Python
19+ uses : actions/setup-python@v5
20+ with :
21+ python-version : ' 3.10'
22+
23+ - name : Install dependencies
24+ run : |
25+ python -m pip install --upgrade pip
26+ pip install build twine
27+
28+ - name : Build package
29+ run : python -m build
30+
31+ - name : Check package
32+ run : twine check dist/*
33+
34+ - name : Publish to PyPI
35+ env :
36+ TWINE_USERNAME : __token__
37+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
38+ run : twine upload dist/*
Original file line number Diff line number Diff line change 1+
12[build-system ]
23requires = [" setuptools>=61.0" ]
34build-backend = " setuptools.build_meta"
@@ -53,14 +54,14 @@ dev = [
5354]
5455
5556[project .urls ]
56- Homepage = " [Keep your GitHub URL from current file] "
57- Documentation = " [Your GitHub URL]/blob/main/docs/API_reference.md "
58- Repository = " [Keep your GitHub URL from current file] "
59- "Bug Tracker" = " [Your GitHub URL]/issues "
60- Changelog = " [Your GitHub URL] /releases"
57+ Homepage = " https://github.com/OpenHeartDevelopers/pycemrg "
58+ "Bug Tracker" = " https://github.com/OpenHeartDevelopers/pycemrg/issues "
59+ Documentation = " https://github.com/OpenHeartDevelopers/pycemrg/blob/main/docs/API_reference.md "
60+ Repository = " https://github.com/OpenHeartDevelopers/pycemrg "
61+ Changelog = " https://github.com/OpenHeartDevelopers/pycemrg /releases"
6162
6263[tool .setuptools .packages .find ]
6364where = [" src" ]
6465
6566[project .scripts ]
66- pycemrg = " pycemrg.cli:main"
67+ pycemrg = " pycemrg.cli:main"
You can’t perform that action at this time.
0 commit comments