Skip to content

Commit ce88c4f

Browse files
committed
Add PyPI publishing
1 parent 2c885fc commit ce88c4f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish Python distributions to PyPI
2+
on:
3+
push:
4+
tags:
5+
- v[0-9]+.[0-9]+.[0-9]+
6+
jobs:
7+
build-and-publish:
8+
name: Build and publish Python distributions 📦 to PyPI
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
contents: read
13+
env:
14+
UV_VERSION: "0.8.22"
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v6
19+
with:
20+
version: ${{ env.UV_VERSION }}
21+
enable-cache: true
22+
- name: Install the dependencies
23+
run: uv sync --locked --all-extras --dev
24+
- uses: actions/setup-python@v4
25+
- name: Build
26+
run: uv build
27+
- name: Publish
28+
run: uv publish

0 commit comments

Comments
 (0)