Skip to content

Commit a466aa6

Browse files
committed
Made props and log's make file the same
1 parent 547a915 commit a466aa6

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Makefile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
GHK ?= 'github-key'
2-
TRAVIS_BUILD_NUMBER ?= 1
2+
TRAVIS_BUILD_NUMBER ?= 2
33
TRAVIS_COMMIT ?= $(shell git log --format=\%H -1)
44

55
SLUG=libgolang/log
@@ -19,12 +19,9 @@ unit-test:
1919
go test
2020

2121
deploy:
22-
$(eval VERSION = v$(shell cat VERSION).$(TRAVIS_BUILD_NUMBER))
23-
@echo curl -d '{ "tag_name": "$(VERSION)", "target_commitish": "$(TRAVIS_COMMIT)", "name": "$(VERSION)", "body": "Automatic Release of $(VERSION)", "draft": false, "prerelease": false }' \
24-
"https://api.github.com/repos/$(SLUG)/releases"
25-
@curl -f -H "Authorization: Bearer $(GHK)" \
26-
-d '{ "tag_name": "$(VERSION)", "target_commitish": "$(TRAVIS_COMMIT)", "name": "$(VERSION)", "body": "Automatic Release of $(VERSION)", "draft": false, "prerelease": false }' \
27-
"https://api.github.com/repos/$(SLUG)/releases"
22+
$(eval VERSION = v$(shell cat VERSION).$(TRAVIS_BUILD_NUMBER)-$(shell git log --format=%h -1))
23+
@echo curl -d '{ "tag_name": "$(VERSION)", "target_commitish": "$(TRAVIS_COMMIT)", "name": "$(VERSION)", "body": "Automatic Release of $(VERSION)", "draft": false, "prerelease": false }' "https://api.github.com/repos/$(SLUG)/releases"
24+
@curl -f -H "Authorization: Bearer $(GHK)" -d '{ "tag_name": "$(VERSION)", "target_commitish": "$(TRAVIS_COMMIT)", "name": "$(VERSION)", "body": "Automatic Release of $(VERSION)", "draft": false, "prerelease": false }' "https://api.github.com/repos/$(SLUG)/releases"
2825

2926
$(GOPATH)/bin/deadcode:
3027
go get -u github.com/tsenart/deadcode

0 commit comments

Comments
 (0)