Skip to content

Commit dab2b55

Browse files
committed
chore: use uv's recommend release workflow
1 parent b8a9052 commit dab2b55

File tree

2 files changed

+28
-43
lines changed

2 files changed

+28
-43
lines changed

.github/workflows/publish.yaml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
# Publish on any tag starting with a `v`, e.g. v1.2.3
7+
- v*
8+
9+
jobs:
10+
pypi:
11+
name: Publish to PyPI
12+
runs-on: ubuntu-latest
13+
# Environment and permissions trusted publishing.
14+
environment:
15+
# Create this environment in the GitHub repository under Settings -> Environments
16+
name: release
17+
permissions:
18+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
19+
steps:
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
21+
uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba
22+
- run: uv build
23+
# Check that basic features work and we didn't miss to include crucial files
24+
- name: Smoke test (wheel)
25+
run: uv run --isolated --no-project -p 3.12 --with dist/*.whl tests/smoke_test.py
26+
- name: Smoke test (source distribution)
27+
run: uv run --isolated --no-project -p 3.12 --with dist/*.tar.gz tests/smoke_test.py
28+
- run: uv publish --trusted-publishing always

0 commit comments

Comments
 (0)