-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
95 lines (79 loc) · 2.32 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
project_name: huec
before:
hooks:
- go mod tidy
- go mod download
builds:
- # Build macOS, Linux and Windows versions
main: ./cmd/huec/main.go
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
targets:
- linux_amd64
- darwin_amd64
- darwin_arm64
- windows_amd64
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X github.com/firstthumb/huec/context.Version={{.Version}}
- -X github.com/firstthumb/huec/context.hueClientId={{.Env.HUE_CLIENT_ID}}
- -X github.com/firstthumb/huec/context.hueClientSecret={{.Env.HUE_CLIENT_SECRET}}
- -X github.com/firstthumb/huec/context.hueAppId={{.Env.HUE_APP_ID}}
# .goreleaser.yml
brews:
- # GitHub repository to push the formula to
tap:
owner: firstthumb
name: homebrew-tap
# Template for the url which is determined by the given Token (github or gitlab)
# Default for github is "https://github.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
url_template: "https://github.com/firstthumb/huec/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: firstthumb
email: [email protected]
# Folder inside the repository to put the formula.
# Default is the root folder.
folder: Formula
# Caveats for the user of your binary.
# Default is empty.
caveats: "Control Philips Hue lights"
# Your app's description.
# Default is empty.
description: "A powerful CLI for controlling Philips Hue lights."
homepage: https://github.com/firstthumb/huec
# SPDX identifier of your app's license.
# Default is empty.
license: "MIT"
archives:
- # Replacements for GOOS and GOARCH in the archive name.
replacements:
darwin: macOS
linux: Linux
windows: Windows
amd64: x86_64
# Can be used to change the archive formats for specific GOOS.
format_overrides:
- goos: windows
format: zip
# Additional files/template/globs you want to add to the archive.
files:
- LICENSE.md
- README.md
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
exclude:
- "^*.md:"