Skip to content

Commit 361fe12

Browse files
authored
Merge pull request #93 from jumpstarter-dev/release-wheels
Add github action for publishing wheels
2 parents 895e9bc + 97a2307 commit 361fe12

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build and publish wheels
2+
on:
3+
workflow_dispatch:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build-and-publish-wheels:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Install the latest version of uv
20+
uses: astral-sh/setup-uv@v1
21+
with:
22+
version: "latest"
23+
enable-cache: true
24+
cache-dependency-glob: "uv.lock"
25+
26+
- name: Install Python 3.12
27+
run: uv python install 3.12
28+
29+
- name: Build wheels
30+
run: make build
31+
32+
- name: Create release
33+
run: gh release create v$(uvx hatch version) dist/* --generate-notes --prerelease
34+
env:
35+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)