Skip to content

Commit c65fe89

Browse files
committed
release workflow
1 parent 88c67a4 commit c65fe89

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/publish.yml

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

0 commit comments

Comments
 (0)