File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,24 +3,41 @@ name: Release python package
33on :
44 push :
55 tags :
6- - " *"
6+ - " v *"
77
88jobs :
9- deploy :
9+ publish :
1010 runs-on : ubuntu-latest
11+
12+ permissions :
13+ contents : read
14+
1115 steps :
12- - uses : actions/checkout@v2
13- - name : Set up Python
14- uses : actions/setup-python@v2
16+ - name : Checkout
17+ uses : actions/checkout@v5
1518 with :
16- python-version : " 3.9"
17- - name : Install deps
18- uses : knowsuchagency/poetry-install@v1
19- env :
20- POETRY_VIRTUALENVS_CREATE : false
21- - name : Set verison
22- run : poetry version "${{ github.ref_name }}"
23- - name : Release package
19+ persist-credentials : false
20+
21+ - name : Install uv
22+ uses : astral-sh/setup-uv@v7
23+ with :
24+ version : " latest"
25+ enable-cache : true
26+ cache-suffix : release-py3.14
27+
28+ - name : Install Python 3.14
29+ run : uv python install 3.14
30+
31+ - name : Set version from tag
32+ shell : bash
33+ run : |
34+ VERSION="${GITHUB_REF_NAME#v}"
35+ uv version "$VERSION" --frozen
36+
37+ - name : Build package
38+ run : uv build --no-sources
39+
40+ - name : Publish package
2441 env :
25- POETRY_PYPI_TOKEN_PYPI : ${{ secrets.PYPI_TOKEN }}
26- run : poetry publish --build
42+ UV_PUBLISH_TOKEN : ${{ secrets.PYPI_TOKEN }}
43+ run : uv publish
Original file line number Diff line number Diff line change 11[project ]
22name = " taskiq-pipelines"
3- version = " 0.0.0 "
3+ version = " 0.0.1 "
44description = " Taskiq pipelines for task chaining."
55authors = [{ name = " Pavel Kirilin" , email = " <win10@list.ru>" }]
66maintainers = [{ name = " Pavel Kirilin" , email = " <win10@list.ru>" }]
You can’t perform that action at this time.
0 commit comments