-
Notifications
You must be signed in to change notification settings - Fork 17
/
.goreleaser.yml
107 lines (100 loc) · 2.3 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
env:
- CGO_ENABLED=0
- GOFLAGS=-mod=vendor
- GO111MODULE=auto
builds:
- id: binary
goos:
- darwin
- linux
goarch:
- amd64
- arm
- arm64
- 386
goarm:
- 6
- 7
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.buildSource=binaryRelease
- id: win_binary
goos:
- windows
goarch:
- amd64
- arm
- arm64
- 386
goarm:
- 6
- 7
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.buildSource=binaryRelease
- id: snap
goos:
- linux
goarch:
- amd64
- arm
- arm64
- 386
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.buildSource=snap
- id: msi
goos:
- windows
goarch:
- amd64
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.buildSource=binaryRelease
hooks:
post: go-msi make --msi dist/regolith-{{.Version}}.msi --version {{.Version}} --src .\templates --out .\go-msi-tmp
archives:
- builds:
- binary
format_overrides:
- goos: windows
format: zip
- builds:
- win_binary
id: win_binary
format: zip
files:
- src: scripts/regolith-update.ps1
dst: ./
strip_parent: true
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Tag }}"
changelog:
filters:
exclude:
# For excluding docs related commits
- '^docs:'
# For excluding configuration related commits
- '^config:'
# For excluding small typo commits
- '^typo:'
# For excluding dependencies related commits
- '^dep:'
sort: asc
release:
extra_files:
- glob: "./**/regolith-*.msi"
- glob: "./CREDITS.csv"
- glob: "./LICENSE"
#brews:
# - tap:
# owner: Bedrock-OSS
# name: homebrew-regolith
#
# # Your app's homepage.
# # Default is empty.
# homepage: ""
#
# # Your app's description.
# # Default is empty.
# description: ""