From 9161efdc19dbf1edf52460f61878c407007101ff Mon Sep 17 00:00:00 2001 From: lord-skinner Date: Sat, 21 Dec 2024 14:52:10 -0600 Subject: [PATCH] add gorelease config --- .goreleaser.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .goreleaser.yml diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..a1a4d88 --- /dev/null +++ b/.goreleaser.yml @@ -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" \ No newline at end of file