-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
63 lines (56 loc) · 1.31 KB
/
.goreleaser.yaml
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
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: gha-cli
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
- go vet -v ./...
builds:
-
binary: gha-cli
goos:
- windows
- darwin
- linux
goarch:
- "amd64"
- "arm64"
env:
- CGO_ENABLED=0
ldflags:
- -extldflags '-static'
- -X "github.com/Norsk-Tipping/gha-cli/cmd.GitHash={{ .Env.GITHASH }}"
- -X "github.com/Norsk-Tipping/gha-cli/cmd.GitTag={{ .Env.GITTAG }}"
- -X "github.com/Norsk-Tipping/gha-cli/cmd.GitBranch={{ .Env.GITBRANCH }}"
ignore:
- goos: windows
goarch: arm64
archives:
- format: tar.gz
id: gha-cli
name_template: "gha-cli-{{.Version}}-{{.Os}}-{{.Arch}}"
wrap_in_directory: false
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "latest"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
- name: gha-cli
tap:
owner: "{{ .Env.GITHUB_REPOSITORY_OWNER}}"
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TOKEN }}"
install: |
bin.install "gha-cli"