Skip to content

Commit 16eb3f7

Browse files
committed
ci: Add publish to pypi
1 parent d3351ee commit 16eb3f7

File tree

2 files changed

+43
-23
lines changed

2 files changed

+43
-23
lines changed

.github/workflows/publish.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Publish
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
environment:
11+
name: pypi
12+
url: https://pypi.org/p/agentic-layer-sdk-adk
13+
permissions:
14+
id-token: write
15+
16+
steps:
17+
- name: 'Checkout'
18+
uses: 'actions/checkout@v5'
19+
20+
- name: Install uv
21+
uses: 'astral-sh/setup-uv@v6'
22+
with:
23+
version: "0.8.11"
24+
enable-cache: true
25+
26+
- name: Setup Python
27+
uses: 'actions/setup-python@v5'
28+
with:
29+
python-version-file: "pyproject.toml"
30+
31+
- name: Install Dependencies
32+
run: uv sync --all-packages
33+
34+
- name: uv Version Bump
35+
run: uv version ${{ github.ref_name }}
36+
37+
- name: 'Build adk package'
38+
run: uv build --project adk
39+
40+
- name: 'Publish adk package to PyPI'
41+
uses: pypa/gh-action-pypi-publish@release/v1
42+
with:
43+
packages-dir: adk/dist/

.github/workflows/push.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)