Skip to content

Commit a450dd9

Browse files
authored
Add version-based release workflow (#96)
* Add release workflow * Update release workflow actions * Update uv setup in release workflow * Simplify release tag detection
1 parent 427660f commit a450dd9

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release on version change
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v6
17+
with:
18+
fetch-depth: 2
19+
20+
- uses: astral-sh/setup-uv@v7.2.0
21+
with:
22+
python-version: "3.13"
23+
24+
- name: Detect version changes
25+
id: detect
26+
uses: salsify/action-detect-and-tag-new-version@v2.0.3
27+
with:
28+
version-command: uv version --short
29+
30+
- name: Create GitHub release
31+
if: steps.detect.outputs.tag != ''
32+
uses: softprops/action-gh-release@v2.5.0
33+
with:
34+
tag_name: "${{ steps.detect.outputs.tag }}"
35+
name: "${{ steps.detect.outputs.tag }}"
36+
generate_release_notes: true

0 commit comments

Comments
 (0)