Skip to content

Commit

Permalink
Release with commit ID
Browse files Browse the repository at this point in the history
So that release branch can push assets with a proper commit ID.
  • Loading branch information
yudai committed Aug 8, 2017
1 parent a046c6f commit 94561d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
OUTPUT_DIR = ./builds
GIT_COMMIT = `git rev-parse HEAD`

gotty: app/resource.go main.go app/*.go
godep go build
Expand Down Expand Up @@ -51,4 +52,4 @@ shasums:
cd ${OUTPUT_DIR}/dist; sha256sum * > ./SHA256SUMS

release:
ghr --delete --prerelease -u yudai -r gotty pre-release ${OUTPUT_DIR}/dist
ghr -c ${GIT_COMMIT} --delete --prerelease -u yudai -r gotty pre-release ${OUTPUT_DIR}/dist
2 changes: 1 addition & 1 deletion wercker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ deploy:
code: make shasums OUTPUT_DIR=.
- script:
name: release
code: make release OUTPUT_DIR=.
code: make release OUTPUT_DIR=. GIT_COMMIT=$WERCKER_GIT_COMMIT

0 comments on commit 94561d8

Please sign in to comment.