Skip to content

Commit

Permalink
First attempt at creating binaries on release
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Feb 3, 2024
1 parent 37cd505 commit 2c98586
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,38 @@ changelog:
# ---------------------------
# Builder
# ---------------------------
build:
skip: true
builds:
- env:
- CGO_ENABLED=0
- GO111MODULE=on
binary: "alert_system"
goarch:
- amd64
- arm64
goos:
- darwin
- linux
goarm:
- 6
- 7
ldflags:
- -s -w -X github.com/bitcoin-sv/{{ .ProjectName }}/cmd.Version={{ .Version }}

# ---------------------------
# Archives + Checksums
# ---------------------------
archives:
- wrap_in_directory: app
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 -}}
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
algorithm: sha256

# ---------------------------
# GitHub Release
Expand Down Expand Up @@ -68,4 +98,4 @@ announce:
# Defaults to `{{ .GitURL }}/releases/tag/{{ .Tag }}`
# url_template: 'https://github.com/bitcoin-sv/{{ .ProjectName }}/releases/tag/{{ .Tag }}'
# Defaults to `{{ .ProjectName }} {{ .Tag }} is out!`
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'

0 comments on commit 2c98586

Please sign in to comment.