-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
53 lines (47 loc) · 1.23 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
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- go mod tidy -compat=1.17
builds:
- env:
- CGO_ENABLED=0
ldflags:
- '-s -w -X github.com/mmiranda/cfdtunnel/cmd.version={{.Version}} -X github.com/mmiranda/cfdtunnel/cmd.commit={{.Commit}} -X github.com/mmiranda/cfdtunnel/cmd.date={{.Date}}'
goos:
- linux
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
# Publish on Homebrew Tap
brews:
-
name: cfdtunnel
tap:
owner: mmiranda
name: homebrew-apps
branch: main
commit_author:
name: Mateus Miranda
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
folder: Formula
homepage: "https://github.com/mmiranda/cfdtunnel"
description: "Use multiple cloudflared tunnel instances on the fly"
license: "MIT"
test: |
system "#{bin}/program", "version"