File tree Expand file tree Collapse file tree 3 files changed +33
-40
lines changed
Expand file tree Collapse file tree 3 files changed +33
-40
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Python 🐍 distribution to PyPI
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*.*.*" # run only when you push a version tag (e.g., v1.0.0)
7+
8+ jobs :
9+ build-n-publish :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v5
18+ with :
19+ python-version : " 3.x"
20+
21+ - name : Install build dependencies
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install build twine
25+
26+ - name : Build package
27+ run : python -m build
28+
29+ - name : Publish to PyPI
30+ uses : pypa/gh-action-pypi-publish@release/v1
31+ with :
32+ password : ${{ secrets.PYPI_API_KEY }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -87,12 +87,4 @@ where = ["."]
8787[tool .pytest .ini_options ]
8888pythonpath = [
8989 " ."
90- ]
91-
92- [tool .semantic_release ]
93- version_toml = [
94- " pyproject.toml:project.version" ,
95- ]
96- branch = " main"
97- build_command = " pip install build && python -m build"
98- commit_parser = " angular"
90+ ]
You can’t perform that action at this time.
0 commit comments