diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2023-12-26 06:12:08 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2023-12-26 06:12:08 +0530 |
commit | 062990151484e7886ad4d82d395d29e00482d839 (patch) | |
tree | 3b45dfd5a7cc4fceffee6d3460e772188667fb80 /.goreleaser.yaml | |
parent | bd1fb6167b28d92c06f75fe414f219c83a03b0af (diff) |
Adding go-releaser for CI
Diffstat (limited to '.goreleaser.yaml')
-rw-r--r-- | .goreleaser.yaml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..b2061a5 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,39 @@ +version: 1 + +before: + hooks: + - go mod tidy +env: + - CGO_ENABLED=0 + +builds: + - binary: go-fis-api + id: go-fis-api + goos: + - linux + - darwin + - windows + goarch: + - amd64 + - arm64 + ldflags: + - -s -w -X "main.buildString={{ .Tag }} ({{ .ShortCommit }} {{ .Date }})" + +archives: + - format: tar.gz + files: + - README.md + - LICENSE + - .env.example + # use zip for windows archives + format_overrides: + - goos: windows + format: zip + +changelog: + sort: asc + filters: + exclude: + - "^docs:" + - "^test:" + - "^Initial trial" |