1
1
# This is an example .goreleaser.yml file with some sensible defaults.
2
2
# Make sure to check the documentation at https://goreleaser.com
3
+
4
+ # The lines below are called `modelines`. See `:help modeline`
5
+ # Feel free to remove those if you don't want/need to use them.
6
+ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
7
+ # vim: set ts=2 sw=2 tw=0 fo=cnqoj
8
+
9
+ version : 2
10
+
3
11
before :
4
12
hooks :
5
13
# You may remove this if you don't use go modules.
6
14
- go mod tidy
7
15
# you may remove this if you don't need go generate
8
16
- go generate ./...
9
- release :
10
- github :
11
- owner : mdp
12
- name : qrterminal
13
- draft : false
14
- # If set to auto, will mark the release as not ready for production
15
- # in case there is an indicator for this in the tag e.g. v1.0.0-rc1
16
- # If set to true, will mark the release as not ready for production.
17
- # Default is false.
18
- prerelease : auto
19
17
20
18
builds :
21
- -
22
- main : ./cmd/qrterminal/main.go
23
- binary : qrterminal
24
- env :
25
- - CGO_ENABLED=0
26
- goos :
27
- - linux
28
- - windows
29
- - darwin
19
+ - main : ./cmd/qrterminal/main.go
20
+ binary : qrterminal
21
+ env :
22
+ - CGO_ENABLED=0
23
+ goos :
24
+ - linux
25
+ - windows
26
+ - darwin
30
27
31
28
archives :
32
- - format : tar.gz
33
- # this name template makes the OS and Arch compatible with the results of uname.
29
+ - formats : [ tar.gz]
30
+ # this name template makes the OS and Arch compatible with the results of ` uname` .
34
31
name_template : >-
35
32
{{ .ProjectName }}_
36
33
{{- title .Os }}_
@@ -40,36 +37,50 @@ archives:
40
37
{{- if .Arm }}v{{ .Arm }}{{ end }}
41
38
# use zip for windows archives
42
39
format_overrides :
43
- - goos : windows
44
- format : zip
40
+ - goos : windows
41
+ formats : [ zip]
45
42
files :
46
43
- LICENSE
47
44
- README.md
48
45
- CHANGELOG.md
49
46
rlcp : true
47
+
50
48
checksum :
51
49
name_template : ' checksums.txt'
50
+
52
51
snapshot :
53
52
name_template : " {{ incpatch .Version }}-next"
53
+
54
54
changelog :
55
55
sort : asc
56
56
filters :
57
57
exclude :
58
- - ' ^docs:'
59
- - ' ^test:'
58
+ - " ^docs:"
59
+ - " ^test:"
60
60
61
- brews :
62
- -
63
- name : qrterminal
64
- tap :
61
+ release :
62
+ github :
65
63
owner : mdp
66
- name : homebrew-tap
67
- token : " {{ .Env.GORELEASER_TOKEN_TAP }}"
68
- commit_author :
69
- name : mdp
70
-
71
- homepage : https://github.com/mdp/qrterminal
72
- description : ' Create and display QR codes on the command line'
64
+ name : qrterminal
65
+ draft : false
66
+ prerelease : auto
67
+ footer : >-
68
+
69
+ ---
70
+
71
+ Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
72
+
73
+ brews :
74
+ - name : qrterminal
75
+ tap :
76
+ owner : mdp
77
+ name : homebrew-tap
78
+ token : " {{ .Env.GORELEASER_TOKEN_TAP }}"
79
+ commit_author :
80
+ name : mdp
81
+
82
+ homepage : https://github.com/mdp/qrterminal
83
+ description : ' Create and display QR codes on the command line'
73
84
74
85
dockers :
75
86
- image_templates :
@@ -99,8 +110,3 @@ docker_manifests:
99
110
image_templates :
100
111
- ghcr.io/mdp/qrterminal:{{ .Tag }}-amd64
101
112
- ghcr.io/mdp/qrterminal:{{ .Tag }}-arm64
102
-
103
- # The lines beneath this are called `modelines`. See `:help modeline`
104
- # Feel free to remove those if you don't want/use them.
105
- # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
106
- # vim: set ts=2 sw=2 tw=0 fo=cnqoj
0 commit comments