Skip to content

Commit 4210888

Browse files
committed
chore: bump version to 0.0.3 and add TestPyPI workflow
1 parent 6e981bb commit 4210888

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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/*

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "swf-common-lib"
7-
version = "0.0.2"
7+
version = "0.0.3"
88
description = "A common library for SWF components."
99
readme = "README.md"
1010
requires-python = ">=3.9"

0 commit comments

Comments
 (0)