Skip to content

Commit 2bcf9a2

Browse files
committed
update: Release workflow
1 parent 19fb288 commit 2bcf9a2

3 files changed

Lines changed: 34 additions & 17 deletions

File tree

.github/workflows/release.yml

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,41 @@ name: Release python package
33
on:
44
push:
55
tags:
6-
- "*"
6+
- "v*"
77

88
jobs:
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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "taskiq-pipelines"
3-
version = "0.0.0"
3+
version = "0.0.1"
44
description = "Taskiq pipelines for task chaining."
55
authors = [{ name = "Pavel Kirilin", email = "<win10@list.ru>" }]
66
maintainers = [{ name = "Pavel Kirilin", email = "<win10@list.ru>" }]

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)