-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
58 lines (58 loc) · 1.19 KB
/
.goreleaser.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
# goreleaser for Verbis
project_name: Verbis
# Hooks to run before build
before:
hooks:
- echo {{.Version}}
#- make all
- go mod tidy
- go generate ./...
- cmd: cd admin && npm run build && cd ../
# Main Verbis build
builds:
- id: "main"
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
binary: verbis
ignore:
- goos: linux
goarch: arm64
- goos: windows
goarch: arm64
tags:
- prod
ldflags:
- -X 'github.com/ainsleyclark/verbis/api.ProductionString=true' -X 'github.com/ainsleyclark/verbis/api/version.Version={{.Version}}'
# Zip
archives:
- builds:
- main
format: zip
name_template: "{{ tolower .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: "verbis"
files:
- README.md
- LICENSE
- themes
- src: .gitignore.build
dst: .gitignore
checksum:
name_template: 'checksums.txt'
algorithm: sha256
snapshot:
name_template: "{{ .Tag }}"
changelog:
skip: true
release:
github:
owner: ainsleyclark
name: verbis
name_template: "{{.ProjectName}} v{{.Version}}"
draft: true