Skip to content

Commit be58656

Browse files
authored
ci: add release workflow for tagged releases (#23)
Publishes a GitHub Release with auto-generated notes when a v* tag is pushed, bringing yaad's CD in line with the other GrayCodeAI repos that already ship a release workflow (hawk-sdk-go, tok, etc.). yaad is a Go library, so this uses the lightweight action-gh-release model (no binary builds).
1 parent ceb690a commit be58656

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Release workflow for yaad (Go library — no binaries).
2+
# Triggered when a v* tag is pushed; publishes a GitHub Release with
3+
# auto-generated notes. Consumers depend on the tag via
4+
# `go get github.com/GrayCodeAI/yaad@vX.Y.Z`.
5+
6+
name: release
7+
8+
on:
9+
push:
10+
tags: ["v*"]
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
release:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Create GitHub Release
25+
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
26+
with:
27+
generate_release_notes: true
28+
draft: false
29+
prerelease: auto
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)