Skip to content

Commit fa04b84

Browse files
committed
Add build pipeline
1 parent 14f29de commit fa04b84

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/build.yml

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

0 commit comments

Comments
 (0)