Skip to content

Commit 5a585f4

Browse files
authored
Publish workflow (#345)
1 parent 7e04614 commit 5a585f4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/pypi.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
pypi-publish:
10+
name: Upload to PyPI
11+
runs-on: ubuntu-latest
12+
environment:
13+
name: release
14+
permissions:
15+
contents: write
16+
# For PyPI's trusted publishing.
17+
id-token: write
18+
steps:
19+
- name: "Install uv"
20+
uses: astral-sh/setup-uv@v5
21+
- name: Build
22+
run: uv build
23+
- name: Publish to PyPi
24+
run: uv publish --token ${{ secrets.UV_PUBLISH_TOKEN }}
25+

0 commit comments

Comments
 (0)