Skip to content

Commit 7c07387

Browse files
authored
Update PyPi workflow for release process
1 parent e104577 commit 7c07387

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release to PyPi
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
pypi:
10+
name: Publish to PyPI
11+
runs-on: ubuntu-latest
12+
environment:
13+
name: pypi
14+
permissions:
15+
id-token: write
16+
contents: read
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v5
20+
- name: Ensure node for agent
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '24'
24+
cache: npm
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v6
27+
- name: Set tagged version
28+
run: |
29+
VERSION="$GITHUB_REF_NAME"
30+
uv version "$VERSION"
31+
- name: Build Agent
32+
run: cd agent && npm ci
33+
- name: Build
34+
run: uv build
35+
- name: Publish
36+
run: uv publish

0 commit comments

Comments
 (0)