-
Notifications
You must be signed in to change notification settings - Fork 42
/
.goreleaser.yml
79 lines (69 loc) · 1.55 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
version: 2
project_name: sysl
env:
- GO111MODULE=on
- GOPROXY=https://proxy.golang.org
- CGO_ENABLED=0
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/sysl
ldflags:
- -s -w -X main.Version=v{{.Version}}
- -X main.GitCommit={{.ShortCommit}}
- -X main.GitFullCommit={{.FullCommit}}
- -X main.BuildDate={{.Date}}
- -X main.BuildOS={{.Os}}/{{.Arch}}
- -s -w -X "main.GoVersion={{.Env.GOVERSION}}"
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
archives:
- id: "sysl"
builds: ['sysl']
format: tar.gz
format_overrides:
- goos: windows
format: zip
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
files:
- README.md
- LICENSE
checksum:
name_template: '{{.ProjectName}}_{{.Version}}_checksums.txt'
snapshot:
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^chore:'
- typo
brews:
-
name: Sysl
homepage: "https://sysl.io/"
description: "Sysl generates code and documentation from system specifications"
# IDs of the archives to use.
ids:
- sysl
# Github repository to push the tap to.
repository:
owner: anz-bank
name: homebrew-sysl
download_strategy: CurlDownloadStrategy
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: goreleaserbot
email: [email protected]
# Directory inside the repository to put the formula.
directory: Formula
test: |
system "#{bin}/sysl --version"