Skip to content

Commit 30db631

Browse files
authored
Goreleaser config update (#193)
* fix(ci): Update goreleaser api to replace deprecated --rm-dist option with --clean arg #190 * fix(.goreleaser): Fix goreleaser config file to use name_template key instead of replacements #190.
1 parent 3d89fa3 commit 30db631

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
distribution: goreleaser
3131
version: '~> v1'
32-
args: release --rm-dist
32+
args: release --clean
3333
env:
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3535

.goreleaser.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@ archives:
1515
- format_overrides:
1616
- goos: windows
1717
format: zip
18-
replacements:
19-
darwin: macOS
20-
linux: Linux
21-
windows: Windows
22-
386: i386
23-
amd64: x86_64
18+
name_template: >-
19+
{{- .ProjectName }}_
20+
{{- .Tag }}_
21+
{{- if eq .Os "darwin" }}macOS
22+
{{- else if eq .Os "windows" }}Windows
23+
{{- else if eq .Os "linux" }}Linux
24+
{{- else }}{{ .Os }}{{ end }}_
25+
{{- if eq .Arch "amd64" }}x86_64
26+
{{- else if eq .Arch "386" }}i386
27+
{{- else }}{{ .Arch }}{{ end }}
2428
files:
2529
- LICENSE
2630
checksum:

0 commit comments

Comments
 (0)