Skip to content

Commit

Permalink
chore: fix goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
fbreckle committed Jun 28, 2024
1 parent f3dbf1e commit f666125
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: goreleaser/[email protected]
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 10 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
---
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.

version: 2

before:
hooks:
# this is just an example and not a requirement for provider building/publishing
- go mod tidy

builds:
- env:
# goreleaser does not work with CGO, it could also complicate
Expand All @@ -30,12 +34,15 @@ builds:
- goos: darwin
goarch: "386"
binary: "{{ .ProjectName }}_v{{ .Version }}"

archives:
- format: zip
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"

checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
algorithm: sha256

signs:
- artifacts: checksum
args:
Expand All @@ -48,8 +55,10 @@ signs:
- "${signature}"
- "--detach-sign"
- "${artifact}"

release:
# If you want to manually examine the release before its live, uncomment this line:
# draft: true

changelog:
skip: true
disable: true

0 comments on commit f666125

Please sign in to comment.