Skip to content

Commit ea6a187

Browse files
committed
feat: Add GitHub Actions workflow for publishing to PyPI
- chore: Bump uv_build dependency version Signed-off-by: Avishrant Sharma <[email protected]>
1 parent ef3e6a3 commit ea6a187

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish release to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
id-token: write
11+
12+
jobs:
13+
build-and-publish:
14+
name: Build and Publish to PyPI
15+
runs-on: ubuntu-latest
16+
environment: pypi
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: "3.12"
26+
27+
- name: Install uv
28+
run: pip install uv
29+
30+
- name: Build wheel and source distribution
31+
run: uv build
32+
33+
- name: Publish to PyPI
34+
run: uv publish

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dev = [
2424
]
2525

2626
[build-system]
27-
requires = ["uv_build>=0.8.22,<0.9.0"]
27+
requires = ["uv_build>=0.9.6,<0.10.0"]
2828
build-backend = "uv_build"
2929

3030
[tool.uv.build-backend]

0 commit comments

Comments
 (0)