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
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
Original file line number Diff line number Diff line change @@ -39,3 +39,9 @@ lint = [
3939pythonpath = [
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
You can’t perform that action at this time.
0 commit comments