From 63216ebe655d5074587ef846d1405aa49f50ee6a Mon Sep 17 00:00:00 2001 From: Jake Walker Date: Tue, 11 Jul 2023 21:46:26 +0100 Subject: [PATCH] Add goreleaser config --- .goreleaser.yaml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .goreleaser.yaml diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..829f0c9 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,50 @@ +before: + hooks: + - go mod tidy +builds: + - goos: + - linux + - windows + - darwin + goarch: + - amd64 + - arm + - arm64 + goarm: + - 5 + - 6 + - 7 + ignore: + - goos: windows + goarch: arm +archives: + - format: tar.gz + # this name template makes the OS and Arch compatible with the results of uname. + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end }} + # use zip for windows archives + format_overrides: + - goos: windows + format: zip +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ incpatch .Version }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' +release: + gitea: + owner: jakew + name: schedule +gitea_urls: + api: https://git.subspace.solutions/api/v1 + download: https://git.subspace.solutions \ No newline at end of file