Skip to content

Commit

Permalink
add release step to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
bcicen committed Oct 13, 2021
1 parent 641d032 commit 32a1594
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
NAME=grmon
VERSION=0.1

build:
dep ensure
cd cmd/grmon; CGO_ENABLED=0 go build -ldflags "-w" -o ../../$(NAME)
mkdir _build
go mod download
CGO_ENABLED=0 go build -ldflags "-w" -o _build/$(NAME)

install:
make build
mv -v $(NAME) $(GOPATH)/bin/$(NAME)
mv -v _build/$(NAME) $(GOPATH)/bin/$(NAME)

release:
mkdir _release
cp _build/* _release
cd _release; sha256sum --quiet --check sha256sums.txt && \
gh _release create v$(VERSION) -d -t v$(VERSION) *

0 comments on commit 32a1594

Please sign in to comment.