Skip to content

Commit e622815

Browse files
committed
Add PyPi release workflow
1 parent 1c2a703 commit e622815

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "PyPI: Publish"
2+
3+
on:
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+"
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
13+
environment:
14+
name: pypi
15+
url: https://pypi.org/project/ipinfo-mcp-server
16+
17+
permissions:
18+
contents: read
19+
id-token: write
20+
21+
steps:
22+
- name: Checkout repo
23+
uses: actions/checkout@v4
24+
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v6
27+
28+
- name: Build package
29+
run: uv build
30+
31+
- name: Publish package
32+
run: uv publish

0 commit comments

Comments
 (0)