Skip to content

Commit

Permalink
add gorelease config
Browse files Browse the repository at this point in the history
  • Loading branch information
lord-skinner committed Dec 21, 2024
1 parent 59bbab1 commit 9161efd
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
before:
hooks:
- go mod tidy
builds:
- binary: dbt-go
main: ./
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X github.com/cognite-analytics/dbt-go/version.version={{.Version}}

release:
prerelease: auto

universal_binaries:
- replace: true
archives:
- name_template: >-
{{- .ProjectName }}_ {{- .Version }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end -}}
format_overrides:
- goos: windows
format: zip
builds_info:
group: root
owner: root
files:
- README.md
- LICENSE
checksum:
name_template: "checksums.txt"

0 comments on commit 9161efd

Please sign in to comment.