Skip to content

Commit a91ac16

Browse files
ci(agent): release the resolver to PyPI
The published MCP server now depends on it, so it needs a release path. Trusted publishing, same as the others.
1 parent 5113220 commit a91ac16

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release address resolver
2+
3+
# Push a tag such as agent-v0.1.0. PyPI trusts this workflow directly, so no
4+
# token is stored anywhere.
5+
on:
6+
push:
7+
tags: ["agent-v*"]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
defaults:
16+
run:
17+
working-directory: agent
18+
steps:
19+
- uses: actions/checkout@v7
20+
- uses: astral-sh/setup-uv@v10.2.0
21+
- name: Tag matches package version
22+
run: test "agent-v$(uv version --short)" = "$GITHUB_REF_NAME"
23+
- run: uv run --group dev pytest
24+
- run: uv build
25+
- uses: actions/upload-artifact@v7
26+
with:
27+
name: agent-dist
28+
path: agent/dist/
29+
30+
publish:
31+
needs: build
32+
runs-on: ubuntu-latest
33+
environment:
34+
name: pypi
35+
url: https://pypi.org/project/ng-address-resolver/
36+
permissions:
37+
id-token: write
38+
steps:
39+
- uses: actions/download-artifact@v8
40+
with:
41+
name: agent-dist
42+
path: dist/
43+
- uses: pypa/gh-action-pypi-publish@v1.14.2

0 commit comments

Comments
 (0)