Skip to content

Commit 6c205f0

Browse files
committed
add release workflow
1 parent 90bc541 commit 6c205f0

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v5
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v6
22+
with:
23+
go-version-file: go.mod
24+
cache: true
25+
26+
- name: Install GoReleaser
27+
uses: goreleaser/goreleaser-action@v6
28+
with:
29+
distribution: goreleaser
30+
version: '~> v2'
31+
install-only: true
32+
33+
- name: Run GoReleaser
34+
run: make release
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func main() {
7676
}
7777

7878
// Hopefully, only usage errors.
79-
logrus.Debug("Exit error: %s", err)
79+
logrus.Debugf("Exit error: %s", err)
8080
os.Exit(1)
8181
}
8282
}

0 commit comments

Comments
 (0)