-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (16 loc) · 583 Bytes
/
Makefile
File metadata and controls
21 lines (16 loc) · 583 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: prepare build install release
ARTIFACTS_DIR=artifacts/${VERSION}
GITHUB_USERNAME=sachaos
prepare:
(cd front && yarn install && yarn build)
go get github.com/rakyll/statik
go generate
build: prepare
go build
install: prepare
go install
release: prepare
GOOS=windows GOARCH=amd64 go build -o $(ARTIFACTS_DIR)/note_windows_amd64
GOOS=darwin GOARCH=amd64 go build -o $(ARTIFACTS_DIR)/note_darwin_amd64
GOOS=linux GOARCH=amd64 go build -o $(ARTIFACTS_DIR)/note_linux_amd64
ghr -u $(GITHUB_USERNAME) -t $(shell cat github_token) --replace ${VERSION} $(ARTIFACTS_DIR)