Skip to content

Commit 5082d5f

Browse files
committed
test publish
1 parent ef87b80 commit 5082d5f

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish
2+
3+
on:
4+
# push:
5+
# tags:
6+
# # Publish on any tag starting with a `v`, e.g., v0.1.0
7+
# - v*
8+
workflow_dispatch:
9+
10+
jobs:
11+
run:
12+
runs-on: ubuntu-latest
13+
environment:
14+
name: testpypi
15+
permissions:
16+
id-token: write
17+
contents: read
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v6
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v7
23+
- name: Install Python 3.13
24+
run: uv python install 3.13
25+
- name: Build
26+
run: uv build
27+
- name: Publish
28+
run: uv publish --index testpypi

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,9 @@ lint = [
3939
pythonpath = [
4040
"src"
4141
]
42+
43+
[[tool.uv.index]]
44+
name = "testpypi"
45+
url = "https://test.pypi.org/simple/"
46+
publish-url = "https://test.pypi.org/legacy/"
47+
explicit = true

0 commit comments

Comments
 (0)