Skip to content

Commit 0c136cc

Browse files
committed
Initial working Makefile
1 parent fa12db9 commit 0c136cc

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
VERSION := v1.0.0
2+
3+
compile: deps
4+
go build
5+
6+
install:
7+
go install
8+
9+
deps:
10+
go get github.com/c4milo/github-release
11+
12+
release:
13+
set -x; \
14+
latest_tag=$$(git describe --tags `git rev-list --tags --max-count=1`); \
15+
comparison="$$latest_tag..HEAD"; \
16+
if [ -z "$$latest_tag" ]; then comparison=""; fi; \
17+
changelog=$$(git log $$comparison --oneline --no-merges --reverse); \
18+
DEBUG=1 github-release c4milo/github-release $(VERSION) "$$(git rev-parse --abbrev-ref HEAD)" "**Changelog**<br/>$$changelog" ${FILES}; \
19+
git pull

0 commit comments

Comments
 (0)