-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
46 lines (42 loc) · 1.06 KB
/
.goreleaser.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: 2
# Define builds first
builds:
- id: default
goos:
- linux
- darwin
- windows
- freebsd
env:
- CGO_ENABLED=0
ldflags:
- -X github.com/monobilisim/monokit/common.MonokitVersion={{ .Version }}
tags:
- ""
binary: monokit
- id: withapi
goos:
- linux
- darwin
- windows
- freebsd
env:
- CGO_ENABLED=0
ldflags:
- -X github.com/monobilisim/monokit/common.MonokitVersion={{ .Version }}
tags:
- with_api
binary: monokit
# Add a hook specific to the withapi build
hooks:
pre:
- sh -c "rm -rf frontend/build common/api/frontend/build && cd frontend && npm install && npm run build && mkdir -p ../common/api/frontend/build && cp -r build/* ../common/api/frontend/build/"
archives:
- id: default
builds:
- default
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
- id: withapi
builds:
- withapi
name_template: "{{ .ProjectName }}_withapi_{{ .Version }}_{{ .Os }}_{{ .Arch }}"