Skip to content

Commit

Permalink
Address deprecated goreleaser configuration (#98)
Browse files Browse the repository at this point in the history
* update go-releaser in ci

* remove deprecated bits from goreleaser config

* change --skip-publish to --skip=publish
  • Loading branch information
dlaguerta authored Sep 27, 2023
1 parent 8722321 commit 609843e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ jobs:
go-version-file: '.go-version'

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

- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
Expand Down
10 changes: 7 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ builds:
- -s -w -X github.com/hashicorp/copywrite/cmd.version={{.Version}} -X github.com/hashicorp/copywrite/cmd.commit={{.ShortCommit}}
binary: copywrite
archives:
- replacements:
amd64: x86_64
- name_template: >-
{{- .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
format_overrides:
- goos: windows
format: zip
Expand All @@ -36,7 +40,7 @@ release:
# Auto-publish to the HashiCorp homebrew tap: https://github.com/hashicorp/homebrew-tap
brews:
- name: copywrite
tap:
repository:
owner: hashicorp
name: homebrew-tap
commit_author:
Expand Down

0 comments on commit 609843e

Please sign in to comment.