Skip to content

Commit 5476962

Browse files
committed
ci: add GitHub Actions workflow for publishing to TestPyPI and update package version to 0.10.0
1 parent f72a4fa commit 5476962

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build and publish python package
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Bump version dev"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
publish-service-client-package:
11+
runs-on: ubuntu-latest
12+
name: "Publish package at PyPi"
13+
permissions:
14+
contents: write
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
submodules: recursive
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v5
22+
- name: "build"
23+
env:
24+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
25+
id: build
26+
run: |
27+
uv build
28+
uv publish --index testpypi

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ dependencies = [
1313
"textual>=1.0.0",
1414
]
1515

16+
[[tool.uv.index]]
17+
name = "testpypi"
18+
url = "https://test.pypi.org/simple/"
19+
publish-url = "https://test.pypi.org/legacy/"
20+
1621
[tool.setuptools]
1722
license-files = []
1823

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)