-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
.goreleaser.yaml
53 lines (48 loc) · 937 Bytes
/
.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
version: 1
project_name: TG-FileStreamBot
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- main: ./cmd/fsb
env:
- CGO_ENABLED=0
flags: -tags=musl
ldflags: "-extldflags -static -s -w"
binary: fsb
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
archives:
- format: tar.gz
name_template: "{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
signs:
- artifacts: checksum
cmd: gpg2
args:
- "--batch"
- "-u"
- "{{ .Env.GPG_FINGERPRINT }}"
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
checksum:
name_template: "{{ .ProjectName }}-{{ .Tag }}-checksums.txt"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"