Skip to content

Commit 0194a28

Browse files
committed
add release tooling
1 parent 3d18ea9 commit 0194a28

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
changelog:
2+
categories:
3+
- title: Breaking Changes ⚠️
4+
labels:
5+
- breaking-change
6+
- title: New Features 🎉
7+
labels:
8+
- "*"
9+
- title: Bug Fixes 🐛
10+
labels:
11+
- bug
12+
- title: Documentation 📚
13+
labels:
14+
- documentation
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish to PyPI and GitHub
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "v*"
8+
9+
jobs:
10+
build-n-publish:
11+
name: Build and publish to PyPI
12+
if: github.repository == 'run-llama/workflows'
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v5
22+
23+
- name: Build and publish
24+
env:
25+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
26+
run: |
27+
uv build
28+
uv publish
29+
30+
- name: Create GitHub Release
31+
uses: ncipollo/release-action@v1
32+
with:
33+
artifacts: "dist/*"
34+
generateReleaseNotes: true

0 commit comments

Comments
 (0)