Skip to content

Commit 4c21fb8

Browse files
committed
feat: add GitHub Actions workflow for release automation
1 parent 487db61 commit 4c21fb8

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
workflow_dispatch:
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v6.1.0
19+
with:
20+
go-version: "1.25"
21+
22+
- name: Build releases
23+
working-directory: claat
24+
run: make release
25+
26+
- name: Upload artifacts
27+
if: github.event_name == 'workflow_dispatch'
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: claat-binaries
31+
path: |
32+
claat/bin/claat-*
33+
claat/bin/VERSION
34+
claat/bin/sha1sum.txt
35+
36+
- name: Release
37+
if: startsWith(github.ref, 'refs/tags/')
38+
uses: softprops/action-gh-release@v1
39+
with:
40+
files: |
41+
claat/bin/claat-*
42+
claat/bin/VERSION
43+
claat/bin/sha1sum.txt

0 commit comments

Comments
 (0)