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 Python Package to PyPI
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*' # Trigger this workflow on version tags like v0.1.0, v1.2.3
7+
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@v4
14+ # This step checks out your repository's code into the runner.
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v4
18+ with :
19+ python-version : ' 3.11'
20+ # This step sets up a specific Python version.
21+
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ pip install build
26+ pip install twine
27+ # This step installs the build and upload tools.
28+
29+ - name : Build package
30+ run : python -m build
31+ # This builds your package into the dist/ folder.
32+
33+ - name : Publish package
34+ env :
35+ TWINE_USERNAME : __token__
36+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
37+ run : |
38+ twine upload dist/*
39+ # This securely uploads the built package to PyPI using the token from your GitHub Secrets.
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " DiffCraft"
7- version = " 0.1.1 "
7+ version = " 0.2.0 "
88authors = [
99
1010 { name =" Saurabh Baral (bvrvl)" , email =" saurabh@bvrvl.com" },
You can’t perform that action at this time.
0 commit comments