Skip to content

Commit

Permalink
Add MD5 checksum to release process
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed AbouZaid committed Jun 27, 2017
1 parent 02baaed commit c317970
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ $(PLATFORMS):
mkdir -p $(DIST_DIR)
env GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $(DIST_DIR)/$(APPNAME).$(RELEASE).$@

md5: dist
cd $(DIST_DIR) && md5sum $(APPNAME).$(RELEASE).* | tee MD5SUM

release: dist
release: md5
go get github.com/tcnksm/ghr
if [ "x$$(git config --global --get github.token)" = "x" ]; then echo "Missing github.token in your git config"; fi
ghr -recreate -u crossengage $(RELEASE) dist/
ghr -recreate -u crossengage $(RELEASE) $(DIST_DIR)

0 comments on commit c317970

Please sign in to comment.