Skip to content

Commit 6fe5642

Browse files
committed
chore: add goreleaser
1 parent eac33a4 commit 6fe5642

File tree

2 files changed

+40
-7
lines changed

2 files changed

+40
-7
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: goreleaser
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*" # Will trigger only if tag is pushed matching pattern `v*` (Eg: `v0.1.0`)
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
goreleaser:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v4
22+
with:
23+
go-version: "1.21"
24+
25+
- name: Run GoReleaser
26+
uses: goreleaser/goreleaser-action@v4
27+
with:
28+
version: latest
29+
args: release --clean
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
env:
2-
- CGO_ENABLED=1
3-
41
before:
52
hooks:
6-
- make dist
7-
3+
- go mod tidy
4+
85
builds:
9-
- binary: kaf-relay.bin
10-
main: .
6+
- env:
7+
- CGO_ENABLED=1
8+
binary: kaf-relay
119
goos:
1210
- windows
1311
- linux
12+
- freebsd
13+
- openbsd
1414
- netbsd
1515
goarch:
1616
- amd64
1717

1818
archives:
1919
- format: tar.gz
20+
rlcp: true
2021
files:
22+
- config.toml.sample
2123
- README.md
2224
- LICENSE

0 commit comments

Comments
 (0)