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

20
Makefile Normal file
View File

@ -0,0 +1,20 @@
setup:
go mod download
go generate ./...
.PHONY: setup
embed:
go install github.com/GeertJohan/go.rice/rice
cd cmd/hetty && rice embed-go
.PHONY: embed
build: embed
go build ./cmd/hetty
.PHONY: build
clean:
rm -rf cmd/hetty/rice-box.go
.PHONY: clean
release:
goreleaser -p 1