Skip to content

Commit 1b2c1eb

Browse files
author
Islam Alibekov
committed
fix genproto and release workflows
1 parent 7205e4b commit 1b2c1eb

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

.github/workflows/genproto.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ jobs:
1717
with:
1818
token: ${{ secrets.YANDEX_CLOUD_BOT_TOKEN }}
1919

20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v4
22+
with:
23+
# Install a specific version of uv.
24+
version: "0.5.8"
25+
enable-cache: true
26+
2027
- name: Set up Python
2128
uses: actions/setup-python@v5
2229
with:
@@ -29,7 +36,7 @@ jobs:
2936
make proto
3037
make deps
3138
make tox
32-
39+
3340
git config --global user.name 'Yandex.Cloud Bot'
3441
git config --global user.email '[email protected]'
3542
git add yandex cloudapi

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ jobs:
1919
with:
2020
fetch-depth: 0
2121

22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v4
24+
with:
25+
# Install a specific version of uv.
26+
version: "0.5.8"
27+
enable-cache: true
28+
2229
- name: Set up Python
2330
uses: actions/[email protected]
2431
with:
@@ -37,9 +44,9 @@ jobs:
3744
with:
3845
github_token: ${{ secrets.GITHUB_TOKEN }}
3946

40-
- name: Build python
47+
- name: Build yandexcloud
4148
run: |
42-
python3 setup.py sdist bdist_wheel
49+
make build
4350
4451
- name: Publish package distributions to PyPI
4552
uses: pypa/[email protected]

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
REPO_ROOT:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
55

6+
build:
7+
uv build
8+
69
deps: ## install deps (library & development)
710
uv sync --all-groups
811

0 commit comments

Comments
 (0)