Skip to content

Commit d31ff49

Browse files
committed
Add PyPI publish workflow
1 parent 3634ed1 commit d31ff49

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build-and-publish:
10+
runs-on: ubuntu-latest
11+
environment: pypi
12+
permissions:
13+
id-token: write # required for trusted publishing
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: astral-sh/setup-uv@v4
19+
with:
20+
version: "latest"
21+
22+
- name: Build package
23+
run: uv build
24+
25+
- name: Publish to PyPI
26+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)