File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed
Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Publish to TestPyPI
2+
3+ description : |
4+ Build and publish the package to TestPyPI when a new tag is pushed.
5+
6+ on :
7+ push :
8+ tags :
9+ - ' v*'
10+
11+ jobs :
12+ build-and-publish :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+
18+ - name : Set up Python
19+ uses : actions/setup-python@v4
20+ with :
21+ python-version : ' 3.9'
22+
23+ - name : Install build tools
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 : Publish to TestPyPI
32+ env :
33+ TWINE_USERNAME : ${{ secrets.TESTPYPI_USERNAME }}
34+ TWINE_PASSWORD : ${{ secrets.TESTPYPI_PASSWORD }}
35+ run : |
36+ twine upload --repository-url https://test.pypi.org/legacy/ dist/*
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " swf-common-lib"
7- version = " 0.0.2 "
7+ version = " 0.0.3 "
88description = " A common library for SWF components."
99readme = " README.md"
1010requires-python = " >=3.9"
You can’t perform that action at this time.
0 commit comments