-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
# Publish on any tag starting with a `v`, e.g. v1.2.3 | ||
- v* | ||
|
||
jobs: | ||
pypi: | ||
name: Publish to PyPI | ||
runs-on: ubuntu-latest | ||
# Environment and permissions trusted publishing. | ||
environment: | ||
# Create this environment in the GitHub repository under Settings -> Environments | ||
name: pypi | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: astral-sh/setup-uv@v4 | ||
with: | ||
version: "latest" | ||
enable-cache: true | ||
- run: uv build | ||
# Check that basic features work and we didn't miss to include crucial files | ||
- name: Smoke test (wheel) | ||
run: uv run --isolated --no-project -p 3.13 --with dist/*.whl tests/smoke_test.py | ||
# - name: Smoke test (source distribution) | ||
# run: uv run --isolated --no-project -p 3.13 --with dist/*.tar.gz tests/smoke_test.py | ||
- run: uv publish --trusted-publishing always |