-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 905 Bytes
/
release.yaml
File metadata and controls
28 lines (26 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
- 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