Skip to content

Commit e7e8caf

Browse files
committed
fix: Publish shared module to PyPI
1 parent e51c237 commit e7e8caf

1 file changed

Lines changed: 39 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,53 @@ on:
55
- 'v*'
66

77
jobs:
8+
publish-shared:
9+
runs-on: ubuntu-latest
10+
environment:
11+
name: pypi
12+
url: https://pypi.org/p/agentic-layer-sdk
13+
permissions:
14+
id-token: write
15+
16+
steps:
17+
- name: 'Checkout'
18+
uses: 'actions/checkout@v6'
19+
20+
- name: Install uv
21+
uses: 'astral-sh/setup-uv@v7'
22+
with:
23+
version: "0.10.7"
24+
enable-cache: true
25+
26+
- name: Setup Python
27+
uses: 'actions/setup-python@v6'
28+
with:
29+
python-version-file: "shared/pyproject.toml"
30+
31+
- name: uv Version Bump
32+
working-directory: shared
33+
run: |-
34+
VERSION=${{ github.ref_name }}
35+
uv version "${VERSION#v}"
36+
37+
- name: Build package
38+
working-directory: shared
39+
run: uv build
40+
41+
- name: Publish package to PyPI
42+
uses: pypa/gh-action-pypi-publish@release/v1
43+
with:
44+
packages-dir: shared/dist
45+
846
publish:
47+
needs: publish-shared
948
runs-on: ubuntu-latest
1049
environment:
1150
name: pypi
1251
url: ${{ matrix.pypi_url }}
1352
permissions:
1453
id-token: write
1554
strategy:
16-
max-parallel: 1
1755
matrix:
1856
include:
1957
- package: adk

0 commit comments

Comments
 (0)