Skip to content

Commit cffe288

Browse files
committed
added github workflow for publishing
1 parent 24485ce commit cffe288

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
# Minimal permissions required; id-token is mandatory for Trusted Publishing (OIDC)
8+
permissions:
9+
contents: read
10+
id-token: write
11+
12+
jobs:
13+
publish:
14+
name: Build and publish to PyPI
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: "3.12"
24+
25+
- name: Install uv
26+
run: pip install uv
27+
28+
- name: Build distributions (sdist + wheel)
29+
run: uv build
30+
31+
- name: Publish to PyPI with Trusted Publishing
32+
run: uv publish --trusted-publishing always

0 commit comments

Comments
 (0)