Skip to content

Commit 55e352d

Browse files
author
antoinegaston
committed
✨ Add release workflow
1 parent bb334b5 commit 55e352d

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build-and-publish:
10+
name: Build and publish package
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
id-token: write # Required for PyPI trusted publishing
15+
contents: read
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v7
23+
with:
24+
enable-cache: true
25+
26+
- name: Install Python
27+
run: uv python install 3.13
28+
29+
- name: Build distributions (sdist + wheel)
30+
run: uv build
31+
32+
- name: Publish to PyPI
33+
uses: pypa/gh-action-pypi-publish@release/v1
34+
with:
35+
verbose: true
36+

0 commit comments

Comments
 (0)