-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yaml
43 lines (36 loc) · 945 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
version: 2
before:
hooks:
- go mod tidy
builds:
- id: ayano
binary: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ if .Amd64 }}-{{ .Amd64 }}{{ end }}"
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
goarm:
- 7
goamd64:
- v2
- v3
flags:
- -trimpath
ldflags:
- -s -w -X github.com/taoky/ayano/pkg/info.Version={{.Version}} -X github.com/taoky/ayano/pkg/info.BuildDate={{.Date}} -X github.com/taoky/ayano/pkg/info.GitCommit={{.Commit}}
no_unique_dist_dir: true
archives:
- format: binary
name_template: "{{ .Binary }}"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
use: github-native
# modelines, feel free to remove those if you don't want/use them:
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj