Skip to content

Commit 4863a88

Browse files
authored
chore: fix CI to follow the deprecation of goreleaser flags (#755)
* chore: fix CI to follow the deprecation of goreleaser flags * chore: fix goreleaser config file to follow deprecation notice
1 parent 4635098 commit 4863a88

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ jobs:
9797
- uses: actions/checkout@v2
9898
- uses: goreleaser/goreleaser-action@v2
9999
with:
100-
args: release --snapshot --skip-publish --rm-dist
100+
args: release --snapshot --skip=publish --clean

.goreleaser.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# This is an example goreleaser.yaml file with some sane defaults.
2-
# Make sure to check the documentation at http://goreleaser.com
1+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2+
3+
version: 2
34

45
builds:
56
- env:
@@ -9,13 +10,13 @@ builds:
910
- windows
1011
- darwin
1112
goarch:
12-
- 386
13+
- "386"
1314
- amd64
1415
- arm
1516
- arm64
1617
ignore:
1718
- goos: darwin
18-
goarch: 386
19+
goarch: "386"
1920

2021
id: jsonnet
2122
main: ./cmd/jsonnet
@@ -30,13 +31,13 @@ builds:
3031
- windows
3132
- darwin
3233
goarch:
33-
- 386
34+
- "386"
3435
- amd64
3536
- arm
3637
- arm64
3738
ignore:
3839
- goos: darwin
39-
goarch: 386
40+
goarch: "386"
4041

4142
id: jsonnetfmt
4243
main: ./cmd/jsonnetfmt
@@ -49,13 +50,13 @@ builds:
4950
- windows
5051
- darwin
5152
goarch:
52-
- 386
53+
- "386"
5354
- amd64
5455
- arm
5556
- arm64
5657
ignore:
5758
- goos: darwin
58-
goarch: 386
59+
goarch: "386"
5960

6061
id: jsonnet-lint
6162
main: ./cmd/jsonnet-lint
@@ -68,26 +69,28 @@ builds:
6869
- windows
6970
- darwin
7071
goarch:
71-
- 386
72+
- "386"
7273
- amd64
7374
- arm
7475
- arm64
7576
ignore:
7677
- goos: darwin
77-
goarch: 386
78+
goarch: "386"
7879

7980
id: jsonnet-deps
8081
main: ./cmd/jsonnet-deps
8182
binary: jsonnet-deps
8283

8384

8485
archives:
85-
- replacements:
86-
darwin: Darwin
87-
linux: Linux
88-
windows: Windows
89-
386: i386
90-
amd64: x86_64
86+
- name_template: >-
87+
{{- .ProjectName }}_
88+
{{- title .Os }}_
89+
{{- if eq .Arch "amd64" }}x86_64
90+
{{- else if eq .Arch "386" }}i386
91+
{{- else }}{{ .Arch }}{{ end }}
92+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
93+
9194
checksum:
9295
name_template: "checksums.txt"
9396

0 commit comments

Comments
 (0)