-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
89 lines (83 loc) · 1.93 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: 2
before:
hooks:
- go mod tidy
- go generate ./...
- go test
builds:
- id: dtmate
binary: dtmate
dir: ./cmd/dtmate
ldflags:
- -extldflags "-static" -s -w -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}}
env:
- CGO_ENABLED=0
goos:
- linux
- freebsd
- darwin
goarch:
- amd64
- arm64
- arm
- ppc64le
goarm:
- "7"
ignore:
- goos: freebsd
goarch: arm64
- goos: freebsd
goarch: arm
- goos: freebsd
goarch: ppc64le
- goos: darwin
goarch: arm
- goos: darwin
goarch: ppc64le
- id: dtmate-win
binary: dtmate
dir: ./cmd/dtmate
ldflags:
- -extldflags "-static" -s -w -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}}
env:
- CGO_ENABLED=0
goos:
- windows
goarch:
- amd64
hooks:
post:
- upx -9 "{{ .Path }}"
archives:
- name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format: tar.xz
format_overrides:
- goos: windows
format: zip
wrap_in_directory: true
files:
- LICENSE
- README.md
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}--checksums.txt"
release:
draft: false
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
brews:
- name: dtmate
repository:
owner: jftuga
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TOKEN }}"
commit_author:
name: jftuga
email: [email protected]
homepage: https://github.com/jftuga/DateTimeMate
description: "dtmate: output the difference between date, time or duration"
test: system "#{bin}/dtmate -v"
install: bin.install "dtmate"