From 4397a84684ac2f053fbc2d5e9358333b069b3df2 Mon Sep 17 00:00:00 2001 From: rsteube Date: Mon, 11 Mar 2024 21:35:21 +0100 Subject: [PATCH] added goreleaser config --- .gitignore | 1 + .goreleaser.yml | 29 +++++++++++++++++++++++++++++ go.work.sum | 2 ++ 3 files changed, 32 insertions(+) create mode 100644 .goreleaser.yml create mode 100644 go.work.sum diff --git a/.gitignore b/.gitignore index 73675b8..3fb9152 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ cmd/carapace-shlex/carapace-shlex +dist profile.cov diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..ba825af --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,29 @@ +before: + hooks: + - go mod download +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin + main: ./cmd/carapace-shlex + binary: carapace-shlex + tags: + - release +archives: + - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' + format_overrides: + - goos: windows + format: zip +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' diff --git a/go.work.sum b/go.work.sum new file mode 100644 index 0000000..5661ca3 --- /dev/null +++ b/go.work.sum @@ -0,0 +1,2 @@ +github.com/cpuguy83/go-md2man/v2 v2.0.3 h1:qMCsGGgs+MAzDFyp9LpAe1Lqy/fY/qCovCm0qnXZOBM= +github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=