Embed static admin resources on build, add goreleaser config

This commit is contained in:
David Stotijn
2020-09-25 02:53:41 +02:00
parent 28ae2b6efb
commit 226762f8e1
9 changed files with 98 additions and 19 deletions

32
.goreleaser.yml Normal file
View File

@ -0,0 +1,32 @@
before:
hooks:
- make clean
- go mod download
- go generate ./...
builds:
- main: ./cmd/hetty
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
hooks:
pre: make embed
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"