Skip to content

Commit 5eec9ad

Browse files
authored
ci: add goreleaser config (#2)
1 parent 72e83b2 commit 5eec9ad

File tree

2 files changed

+67
-1
lines changed

2 files changed

+67
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ jobs:
1515
- name: Set up Go
1616
uses: actions/setup-go@v4
1717
with:
18-
go-version: '1.20.6'
18+
go-version: '1.20.4'
19+
20+
- name: Fetch vendor
21+
run: make vendor
1922

2023
- name: Run GoReleaser
2124
uses: goreleaser/goreleaser-action@v4

.goreleaser.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
build:
2+
binary: jlv
3+
main: ./cmd/jlv
4+
goos:
5+
- windows
6+
- darwin
7+
- linux
8+
goarch:
9+
- "386"
10+
- amd64
11+
- arm
12+
- arm64
13+
goarm:
14+
- "6"
15+
ignore:
16+
- goos: darwin
17+
goarch: "386"
18+
env:
19+
- CGO_ENABLED=0
20+
21+
gomod:
22+
proxy: false
23+
24+
archives:
25+
- name_template: "{{.Binary}}_{{.Os}}_{{.Arch}}"
26+
files:
27+
- README.md
28+
- LICENSE
29+
format_overrides:
30+
- goos: windows
31+
format: zip
32+
33+
release:
34+
draft: false
35+
36+
snapshot:
37+
name_template: "{{.Tag}}"
38+
39+
checksum:
40+
name_template: "task_checksums.txt"
41+
42+
nfpms:
43+
- vendor: Task
44+
homepage: https://github.com/hedhyw/jlv
45+
maintainer: Maksym Kryvchun <[email protected]>
46+
description: JSON Log Viewer tool.
47+
license: MIT
48+
formats:
49+
- deb
50+
- rpm
51+
file_name_template: "{{.ProjectName}}_{{.Os}}_{{.Arch}}"
52+
53+
brews:
54+
- name: jlv
55+
description: JSON Log Viewer tool.
56+
license: MIT
57+
homepage: https://github.com/hedhyw/homebrews
58+
tap:
59+
owner: hedhyw
60+
name: homebrew-main
61+
test: system "#{bin}/jlv", "-help"
62+
install: |-
63+
bin.install "jlv"

0 commit comments

Comments
 (0)