Skip to content

Commit 848afd1

Browse files
Publish workflow
1 parent effb47c commit 848afd1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
environment: release
12+
permissions:
13+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
14+
contents: read
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v6
20+
with:
21+
enable-cache: true
22+
23+
- name: Set version
24+
run: uv version ${{ github.ref_name }}
25+
26+
- name: Build package
27+
run: uv build
28+
29+
- name: Publish package
30+
run: uv publish

0 commit comments

Comments
 (0)