summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-04-24 14:35:31 +0200
committerSanto Cariotti <santo@dcariotti.me>2025-04-24 14:35:31 +0200
commit0e178fd03f845b7af220dfa13a9cf4affb1a94ed (patch)
tree986a3620f667fb2655c3a65d6b63209aea893eca
parentcaf97bfca3a483395d071937898e2479b49beb1c (diff)
Fix gorelease so to have 2 binaries
-rw-r--r--.goreleaser.yaml27
1 files changed, 16 insertions, 11 deletions
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index 5de8745..58dd3ce 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -4,7 +4,7 @@
# The lines below are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
-# vim: set ts=2 sw=2 tw=0 fo=cnqoj
+# vim: set ts=2 sw=2 tw=2 fo=cnqoj
version: 2
@@ -18,6 +18,7 @@ before:
builds:
- id: api
main: ./cmd/api/main.go
+ binary: rahanna-api
env:
- CGO_ENABLED=0
goos:
@@ -26,6 +27,7 @@ builds:
- darwin
- id: ui
main: ./cmd/ui/main.go
+ binary: rahanna-ui
env:
- CGO_ENABLED=0
goos:
@@ -34,17 +36,20 @@ builds:
- darwin
archives:
- - formats:
- - tar.gz
- # this name template makes the OS and Arch compatible with the results of `uname`.
+ - id: api-archive
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
+ {{ .ProjectName }}_api_{{ .Os }}_{{ .Arch }}
+ builds:
+ - api
+ format_overrides:
+ - goos: windows
+ formats:
+ - zip
+ - id: ui-archive
+ name_template: >-
+ {{ .ProjectName }}_ui_{{ .Os }}_{{ .Arch }}
+ builds:
+ - ui
format_overrides:
- goos: windows
formats: