Skip to content

Commit dea8810

Browse files
committed
Add release workflow for the CI/CD pipeline
1 parent fa5740c commit dea8810

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.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
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: astral-sh/setup-uv@v3
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.13 --with dist/*.whl tests/smoke_test.py
26+
# - name: Smoke test (source distribution)
27+
# run: uv run --isolated --no-project -p 3.13 --with dist/*.tar.gz tests/smoke_test.py
28+
- run: uv publish --trusted-publishing always

0 commit comments

Comments
 (0)