Skip to content

Commit dddada0

Browse files
Tobias MeinhardtTobias Meinhardt
authored andcommitted
cicd: upgrade gorelease to version 2
1 parent e4002e2 commit dddada0

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.goreleaser.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This is an example goreleaser.yaml file with some sane defaults.
22
# Make sure to check the documentation at http://goreleaser.com
3+
version: 2
34
before:
45
hooks:
56
- go generate ./...
@@ -13,23 +14,25 @@ builds:
1314
- linux
1415
- windows
1516
archives:
16-
- name_template: "glow_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
17-
replacements:
18-
386: i386
19-
amd64: x86_64
17+
- name_template: >-
18+
glow_
19+
{{ .Os }}_
20+
{{- if eq .Arch "amd64" }}x86_64
21+
{{- else if eq .Arch "386" }}i386
22+
{{- else }}{{ .Arch }}{{ end }}
2023
format_overrides:
2124
- goos: windows
22-
format: zip
25+
formats: ["zip"]
2326
brews:
24-
- tap:
27+
- repository:
2528
owner: meinto
2629
name: glow
2730
commit_author:
2831
name: Tobias Meinhardt
2932
email: tobias.meinhardt@mailbox.org
3033
homepage: "https://github.com/meinto/glow"
3134
description: "A cli tool to adapt git-flow"
32-
folder: formula
35+
directory: formula
3336
dependencies:
3437
- git
3538
# snapcraft:
@@ -46,7 +49,7 @@ brews:
4649
checksum:
4750
name_template: "checksums.txt"
4851
snapshot:
49-
name_template: "{{ .Tag }}-next"
52+
version_template: "{{ .Tag }}-next"
5053
changelog:
5154
sort: desc
5255
filters:

0 commit comments

Comments
 (0)