Skip to content

Commit 8b3eb4e

Browse files
committed
Add build pipeline
1 parent 14f29de commit 8b3eb4e

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- feature/build
8+
tags:
9+
- v*
10+
11+
jobs:
12+
build_wheels:
13+
name: Build
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v5
17+
- name: Install the latest version of uv
18+
uses: astral-sh/setup-uv@v6
19+
with:
20+
version: "latest"
21+
- name: Build
22+
run: uv build
23+
- uses: actions/upload-artifact@v4
24+
with:
25+
path: ./dist/*
26+
27+
upload_pypi:
28+
name: Upload to PyPI
29+
needs: [build_wheels]
30+
runs-on: ubuntu-latest
31+
environment: pypi
32+
permissions:
33+
id-token: write
34+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
35+
steps:
36+
- uses: actions/download-artifact@v4
37+
with:
38+
name: artifact
39+
path: dist
40+
41+
- uses: pypa/gh-action-pypi-publish@release/v1
42+
with:
43+
skip-existing: true

0 commit comments

Comments
 (0)