Skip to content

Commit

Permalink
add goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandersh committed Jun 23, 2024
1 parent 6f78d84 commit 9ff96b6
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
version: 2

project_name: task-tui

before:
hooks:
- go mod tidy

env:
- CGO_ENABLED=0

builds:
- id: task-tui
binary: task-tui
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- arm
goarm:
- '6'
ldflags:
- -s -w -X main.version={{.Version}}
- -s -w -X main.commit={{.Commit}}
- -s -w -X main.date={{.Date}}

archives:
- name_template: "{{.ProjectName}}_{{.Os}}_{{.Arch}}"
format_overrides:
- goos: windows
format: zip

checksum:
name_template: "checksums.txt"

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

brews:
- name: task-tui
commit_author:
name: aleksandersh
email: alex-shuttle@yandex.ru
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
directory: Formula
homepage: "https://github.com/aleksandersh/task-tui/"
description: "Terminal user interface for Task"
license: "MIT"
repository:
owner: aleksandersh
name: homebrew-task-tui
branch: main
test: |
system "#{bin}/task-tui --version"

0 comments on commit 9ff96b6

Please sign in to comment.