Skip to content

Commit 609843e

Browse files
authored
Address deprecated goreleaser configuration (#98)
* update go-releaser in ci * remove deprecated bits from goreleaser config * change --skip-publish to --skip=publish
1 parent 8722321 commit 609843e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/golangci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ jobs:
6969
go-version-file: '.go-version'
7070

7171
- name: Run GoReleaser
72-
uses: goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7 # v4.3.0
72+
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
7373
with:
7474
version: latest
75-
args: release --rm-dist --skip-publish --snapshot
75+
args: release --clean --skip=publish --snapshot
7676

7777
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
7878
with:

.goreleaser.yaml

+7-3
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ builds:
1919
- -s -w -X github.com/hashicorp/copywrite/cmd.version={{.Version}} -X github.com/hashicorp/copywrite/cmd.commit={{.ShortCommit}}
2020
binary: copywrite
2121
archives:
22-
- replacements:
23-
amd64: x86_64
22+
- name_template: >-
23+
{{- .ProjectName }}_
24+
{{- title .Os }}_
25+
{{- if eq .Arch "amd64" }}x86_64
26+
{{- else }}{{ .Arch }}{{ end }}
27+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
2428
format_overrides:
2529
- goos: windows
2630
format: zip
@@ -36,7 +40,7 @@ release:
3640
# Auto-publish to the HashiCorp homebrew tap: https://github.com/hashicorp/homebrew-tap
3741
brews:
3842
- name: copywrite
39-
tap:
43+
repository:
4044
owner: hashicorp
4145
name: homebrew-tap
4246
commit_author:

0 commit comments

Comments
 (0)