Skip to content

Commit c9a08ae

Browse files
committed
add .github/workflows/publish.yml
1 parent 060b9bd commit c9a08ae

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Publish"
2+
3+
on:
4+
push:
5+
tags:
6+
# Publish on any tag starting with a `v`, e.g., v0.1.0
7+
- v*
8+
9+
jobs:
10+
run:
11+
runs-on: ubuntu-latest
12+
environment:
13+
name: pypi
14+
permissions:
15+
id-token: write
16+
contents: read
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v5
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v6
22+
- name: Install Python 3.13
23+
run: uv python install 3.13
24+
- name: Build
25+
run: uv build
26+
# Check that basic features work and we didn't miss to include crucial files
27+
# - name: Smoke test (wheel)
28+
# run: uv run --isolated --no-project --with dist/*.whl tests/smoke_test.py
29+
# - name: Smoke test (source distribution)
30+
# run: uv run --isolated --no-project --with dist/*.tar.gz tests/smoke_test.py
31+
- name: Publish
32+
run: uv publish

0 commit comments

Comments
 (0)