Skip to content

Commit da194b1

Browse files
authored
fix(release): Update goreleaser config to v2 (#210)
Signed-off-by: Flipez <code@brauser.io>
1 parent b29711d commit da194b1

1 file changed

Lines changed: 23 additions & 22 deletions

File tree

.goreleaser.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1-
build:
2-
binary: rocket-lang
3-
main: main.go
4-
ldflags:
5-
- >
6-
-s -w
7-
-X github.com/flipez/rocket-lang/repl.buildVersion={{.Version}}
8-
-X github.com/flipez/rocket-lang/repl.buildDate={{.Date}}
9-
goos:
10-
- linux
11-
- darwin
12-
- freebsd
13-
- windows
14-
goarch:
15-
- amd64
16-
- arm
17-
- arm64
18-
env:
19-
- CGO_ENABLED=0
1+
version: 2
2+
builds:
3+
- binary: rocket-lang
4+
main: main.go
5+
ldflags:
6+
- >
7+
-s -w
8+
-X github.com/flipez/rocket-lang/repl.buildVersion={{.Version}}
9+
-X github.com/flipez/rocket-lang/repl.buildDate={{.Date}}
10+
goos:
11+
- linux
12+
- darwin
13+
- freebsd
14+
- windows
15+
goarch:
16+
- amd64
17+
- arm
18+
- arm64
19+
env:
20+
- CGO_ENABLED=0
2021

2122
archives:
2223
- name_template: "{{.Binary}}_{{.Os}}_{{.Arch}}_{{.Tag}}"
@@ -25,7 +26,7 @@ release:
2526
draft: true
2627

2728
snapshot:
28-
name_template: "{{.Tag}}"
29+
version_template: "{{.Tag}}"
2930

3031
checksum:
3132
name_template: "checksums.txt"
@@ -47,7 +48,7 @@ nfpms:
4748
brews:
4849
-
4950
name: rocket-lang
50-
tap:
51+
repository:
5152
owner: flipez
5253
name: homebrew-tap
5354

@@ -59,7 +60,7 @@ brews:
5960

6061
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
6162

62-
folder: Formula
63+
directory: Formula
6364

6465
homepage: "https://auch.cool/"
6566
license: "MIT"

0 commit comments

Comments
 (0)