From 609843eb1837129d41091ecfe8aa0f83c4d005e9 Mon Sep 17 00:00:00 2001 From: Dianne Laguerta Date: Wed, 27 Sep 2023 10:46:38 -0700 Subject: [PATCH] Address deprecated goreleaser configuration (#98) * update go-releaser in ci * remove deprecated bits from goreleaser config * change --skip-publish to --skip=publish --- .github/workflows/golangci.yml | 4 ++-- .goreleaser.yaml | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/golangci.yml b/.github/workflows/golangci.yml index 9696f48..d28964e 100644 --- a/.github/workflows/golangci.yml +++ b/.github/workflows/golangci.yml @@ -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: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b5c7de6..03f3ecf 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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 @@ -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: