File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # https://docs.astral.sh/uv/guides/integration/github/#publishing-to-pypi
2+
3+ name : release
4+
5+ on :
6+ push :
7+ tags :
8+ # Publish on any tag starting with a `v`, e.g., v0.1.0
9+ - v*
10+
11+ jobs :
12+ run :
13+ runs-on : ubuntu-latest
14+ environment :
15+ name : pypi
16+ permissions :
17+ id-token : write
18+ contents : read
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v5
22+ - name : Install uv
23+ uses : astral-sh/setup-uv@v7
24+ - name : Install Python 3.12
25+ run : uv python install 3.12
26+ - name : Build
27+ run : uv build
28+ # Check that basic features work and we didn't miss to include crucial files
29+ - name : Smoke test (wheel)
30+ run : uv run --isolated --no-project --with dist/*.whl tests/smoke_test.py
31+ - name : Smoke test (source distribution)
32+ run : uv run --isolated --no-project --with dist/*.tar.gz tests/smoke_test.py
33+ - name : Publish
34+ run : uv publish
You can’t perform that action at this time.
0 commit comments