Skip to content

Commit 9a231a2

Browse files
authored
Merge pull request #40 from ceph/pypi-release
.github/workflows: Add release.yml
2 parents 64aaa64 + 92dfaaa commit 9a231a2

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Publish release to PyPI"
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
run:
10+
runs-on: ubuntu-latest
11+
environment:
12+
name: pypi
13+
permissions:
14+
id-token: write
15+
contents: read
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v6
19+
- name: Install uv
20+
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
21+
- name: Install Python 3.13
22+
run: uv python install 3.13
23+
- name: Build
24+
run: rm -rf dist && uv build
25+
- name: Smoke test (wheel)
26+
run: uv run --isolated --no-project --with (ls dist/*.whl)\[test\] pytest tests
27+
- name: Smoke test (source distribution)
28+
run: uv run --isolated --no-project --with (ls dist/*.tar.gz)\[test\] pytest tests
29+
- name: Publish
30+
run: uv publish

0 commit comments

Comments
 (0)