generated from kmdkuk/goct
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
39 lines (39 loc) · 898 Bytes
/
.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
project_name: git-push-notifier
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- main: .
binary: git-push-notifier
ldflags:
- -s -w
- -X github.com/kmdkuk/git-push-notifier/version.Version={{.Version}}
- -X github.com/kmdkuk/git-push-notifier/version.Revision={{.ShortCommit}}
- -X github.com/kmdkuk/git-push-notifier/version.BuildDate={{.Date}}
goos:
- windows
- darwin
- linux
goarch:
- 386
- amd64
env:
- CGO_ENABLED=0
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format: binary
replacements:
darwin: darwin
linux: linux
windows: windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
checksum:
name_template: checksums.txt
release:
prerelease: auto