diff options
-rw-r--r-- | .goreleaser.yaml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..16a3ffb --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,48 @@ +version: 2 +project_name: goexec + +before: + hooks: + - go mod tidy + - go generate ./... +builds: + - env: + - CGO_ENABLED=0 + ldflags: -s -w + goos: + - darwin + - windows + - linux + goarch: + - amd64 + - arm64 + - "386" + - arm + +#upx: +# - enabled: true +# goos: [ linux ] +# compress: best +# lzma: true + +archives: + - name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}" + files: + - README.md + - LICENSE + format_overrides: + - goos: windows + format: zip + +checksum: + name_template: "checksums.txt" +snapshot: + name_template: "{{ incpatch .Version }}" +changelog: + sort: asc + filters: + exclude: + - "^docs:" + - "^doc:" + - "^ci:" + - "^Merge pull request" |