From 46dbd8fc6e1507a87f45fc2ad9f281594339f669 Mon Sep 17 00:00:00 2001 From: dlaguerta Date: Tue, 26 Sep 2023 15:46:07 -0700 Subject: [PATCH 1/3] update go-releaser in ci --- .github/workflows/golangci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/golangci.yml b/.github/workflows/golangci.yml index 9696f48..340154c 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: From d98efbe15676d909637278350f98b1febd738b4b Mon Sep 17 00:00:00 2001 From: dlaguerta Date: Tue, 26 Sep 2023 16:07:56 -0700 Subject: [PATCH 2/3] remove deprecated bits from goreleaser config --- .goreleaser.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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: From f6cafd12d0dc9b8ce2db2988a2e8c53437844002 Mon Sep 17 00:00:00 2001 From: dlaguerta Date: Tue, 26 Sep 2023 16:17:09 -0700 Subject: [PATCH 3/3] change --skip-publish to --skip=publish --- .github/workflows/golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci.yml b/.github/workflows/golangci.yml index 340154c..d28964e 100644 --- a/.github/workflows/golangci.yml +++ b/.github/workflows/golangci.yml @@ -72,7 +72,7 @@ jobs: uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0 with: version: latest - args: release --clean --skip-publish --snapshot + args: release --clean --skip=publish --snapshot - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 with: