mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-22 04:14:25 +00:00
Release with commit ID
So that release branch can push assets with a proper commit ID.
This commit is contained in:
parent
b181c6baf5
commit
91be466d29
3
Makefile
3
Makefile
@ -1,4 +1,5 @@
|
|||||||
OUTPUT_DIR = ./builds
|
OUTPUT_DIR = ./builds
|
||||||
|
GIT_COMMIT = `git rev-parse HEAD`
|
||||||
|
|
||||||
gotty: app/resource.go main.go app/*.go
|
gotty: app/resource.go main.go app/*.go
|
||||||
godep go build
|
godep go build
|
||||||
@ -51,4 +52,4 @@ shasums:
|
|||||||
cd ${OUTPUT_DIR}/dist; sha256sum * > ./SHA256SUMS
|
cd ${OUTPUT_DIR}/dist; sha256sum * > ./SHA256SUMS
|
||||||
|
|
||||||
release:
|
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
|
||||||
|
@ -29,4 +29,4 @@ deploy:
|
|||||||
code: make shasums OUTPUT_DIR=.
|
code: make shasums OUTPUT_DIR=.
|
||||||
- script:
|
- script:
|
||||||
name: release
|
name: release
|
||||||
code: make release OUTPUT_DIR=.
|
code: make release OUTPUT_DIR=. GIT_COMMIT=$WERCKER_GIT_COMMIT
|
||||||
|
Loading…
Reference in New Issue
Block a user