File tree Expand file tree Collapse file tree 2 files changed +19
-29
lines changed
Expand file tree Collapse file tree 2 files changed +19
-29
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,15 @@ name: CI
22
33on :
44 push :
5- branches : [ master ]
5+ branches :
6+ - master
7+ tags :
8+ - ' v[0-9]+.[0-9]+.[0-9]+'
69 pull_request :
7- branches : [ master ]
8-
9- workflow_call :
10+ workflow_dispatch :
1011
1112jobs :
12- ci :
13+ tests :
1314 runs-on : ubuntu-latest
1415 strategy :
1516 fail-fast : false
2425 - uses : astral-sh/setup-uv@v3
2526 - run : uv sync
2627 - run : just check-all
28+
29+ pypi-publish :
30+ runs-on : ubuntu-latest
31+ needs : tests
32+ if : " startsWith(github.ref, 'refs/tags/')"
33+ permissions :
34+ id-token : write
35+ environment : pypi
36+ steps :
37+ - uses : actions/checkout@v4
38+ - uses : astral-sh/setup-uv@v3
39+ - run : uv build
40+ - uses : pypa/gh-action-pypi-publish@release/v1
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments