Skip to content

Commit 52ac5ce

Browse files
chore(action)
1 parent 398b669 commit 52ac5ce

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Release Build
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
# -------------------------
17+
# Checkout
18+
# -------------------------
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
# -------------------------
23+
# Setup Node
24+
# -------------------------
25+
- name: Setup Node
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 25
29+
cache: "npm"
30+
cache-dependency-path: frontend/package-lock.json
31+
32+
# -------------------------
33+
# Setup Go
34+
# -------------------------
35+
- name: Setup Go
36+
uses: actions/setup-go@v5
37+
with:
38+
go-version: 1.23
39+
40+
# -------------------------
41+
# Cache Go modules
42+
# -------------------------
43+
- name: Cache Go modules
44+
uses: actions/cache@v4
45+
with:
46+
path: |
47+
~/go/pkg/mod
48+
~/.cache/go-build
49+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
50+
51+
# -------------------------
52+
# Build project
53+
# -------------------------
54+
- name: Build using Makefile
55+
run: make build
56+
57+
# -------------------------
58+
# Create zip artifact
59+
# -------------------------
60+
- name: Package release
61+
run: |
62+
VERSION=${GITHUB_REF_NAME}
63+
zip -r release-${VERSION}.zip release
64+
65+
# -------------------------
66+
# Create GitHub Release
67+
# -------------------------
68+
- name: Publish Release
69+
uses: softprops/action-gh-release@v2
70+
with:
71+
files: release-*.zip

0 commit comments

Comments
 (0)