Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20.6'
go-version: '1.20.4'

- name: Fetch vendor
run: make vendor

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
Expand Down
63 changes: 63 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
build:
binary: jlv
main: ./cmd/jlv
goos:
- windows
- darwin
- linux
goarch:
- "386"
- amd64
- arm
- arm64
goarm:
- "6"
ignore:
- goos: darwin
goarch: "386"
env:
- CGO_ENABLED=0

gomod:
proxy: false

archives:
- name_template: "{{.Binary}}_{{.Os}}_{{.Arch}}"
files:
- README.md
- LICENSE
format_overrides:
- goos: windows
format: zip

release:
draft: false

snapshot:
name_template: "{{.Tag}}"

checksum:
name_template: "task_checksums.txt"

nfpms:
- vendor: Task
homepage: https://github.com/hedhyw/jlv
maintainer: Maksym Kryvchun <hedhyw@yahoo.com>
description: JSON Log Viewer tool.
license: MIT
formats:
- deb
- rpm
file_name_template: "{{.ProjectName}}_{{.Os}}_{{.Arch}}"

brews:
- name: jlv
description: JSON Log Viewer tool.
license: MIT
homepage: https://github.com/hedhyw/homebrews
tap:
owner: hedhyw
name: homebrew-main
test: system "#{bin}/jlv", "-help"
install: |-
bin.install "jlv"