Skip to content

Commit

Permalink
chore: fix .goreleaser.yml and goreleaser usage for goreleaser v2 (#3073
Browse files Browse the repository at this point in the history
)
  • Loading branch information
suzuki-shunsuke authored Jul 18, 2024
1 parent cd6d386 commit 68ec7a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
5 changes: 3 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
builds:
- binary: trufflehog
ldflags:
Expand Down Expand Up @@ -87,7 +88,7 @@ docker_manifests:
- ghcr.io/trufflesecurity/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/trufflesecurity/{{ .ProjectName }}:{{ .Version }}-arm64v8
brews:
- tap:
- repository:
owner: trufflesecurity
name: homebrew-trufflehog
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
Expand All @@ -107,4 +108,4 @@ signs:
- "--output-signature=${signature}"
- "${artifact}"
- "--yes"
artifacts: checksum
artifacts: checksum
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ snifftest:
./hack/snifftest/snifftest.sh

test-release:
goreleaser release --rm-dist --skip-publish --snapshot
goreleaser release --clean --skip-publish --snapshot

0 comments on commit 68ec7a2

Please sign in to comment.