Release with commit ID

So that release branch can push assets with a proper commit ID.
This commit is contained in:
Iwasaki Yudai 2017-08-08 17:18:49 +09:00
parent b181c6baf5
commit 91be466d29
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
OUTPUT_DIR = ./builds
GIT_COMMIT = `git rev-parse HEAD`
gotty: app/resource.go main.go app/*.go
godep go build
@ -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

View File

@ -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