-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
74 lines (69 loc) · 2.1 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
project_name: json-server
before:
hooks:
- go mod download
builds:
-
id: json-server_linux
binary: json-server
ldflags:
- -s -w
- -X github.com/chanioxaris/json-server/cmd.version={{.Version}}
- -X github.com/chanioxaris/json-server/cmd.goVersion={{.Env.GO_VERSION}}
- -X github.com/chanioxaris/json-server/cmd.gitCommit={{.ShortCommit}}
- -X github.com/chanioxaris/json-server/cmd.builtDate={{.Date}}
- -X github.com/chanioxaris/json-server/cmd.builtOS={{.Os}}
- -X github.com/chanioxaris/json-server/cmd.builtArch={{.Arch}}
goos:
- linux
goarch:
- 386
- amd64
- id: json-server_windows
binary: json-server
ldflags:
- -s -w
- -X github.com/chanioxaris/json-server/cmd.version={{.Version}}
- -X github.com/chanioxaris/json-server/cmd.goVersion={{.Env.GO_VERSION}}
- -X github.com/chanioxaris/json-server/cmd.gitCommit={{.ShortCommit}}
- -X github.com/chanioxaris/json-server/cmd.builtDate={{.Date}}
- -X github.com/chanioxaris/json-server/cmd.builtOS={{.Os}}
- -X github.com/chanioxaris/json-server/cmd.builtArch={{.Arch}}
goos:
- windows
goarch:
- 386
- amd64
-
id: json-server_macos
binary: json-server
ldflags:
- -s -w
- -X github.com/chanioxaris/json-server/cmd.version={{.Version}}
- -X github.com/chanioxaris/json-server/cmd.goVersion={{.Env.GO_VERSION}}
- -X github.com/chanioxaris/json-server/cmd.gitCommit={{.ShortCommit}}
- -X github.com/chanioxaris/json-server/cmd.builtDate={{.Date}}
- -X github.com/chanioxaris/json-server/cmd.builtOS={{.Os}}
- -X github.com/chanioxaris/json-server/cmd.builtArch={{.Arch}}
goos:
- darwin
goarch:
- 386
- amd64
archives:
-
wrap_in_directory: true
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
format: tar.gz
format_overrides:
- goos: windows
format: zip
replacements:
darwin: macOS
amd64: 64bit
386: 32bit
checksum:
name_template: "checksums.txt"
algorithm: sha256
changelog:
skip: true