Skip to content

Commit dca3242

Browse files
committed
ci: publish the package from Github Actions
Taken from https://github.com/astral-sh/trusted-publishing-examples
1 parent 5540b7c commit dca3242

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)