Use current branch name or tag name when building binaries
This commit is contained in:
parent
8f5782b73a
commit
e4c3d87ba6
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
version=$(git rev-parse --abbrev-ref HEAD)
|
version="$(git symbolic-ref -q --short HEAD || git describe --tags --exact-match)"
|
||||||
commit=$(git log --format="%H" -n 1)
|
commit="$(git log --format="%H" -n 1)"
|
||||||
|
|
||||||
function compile {
|
function compile {
|
||||||
local os=$1
|
local os=$1
|
||||||
|
|
Loading…
Reference in New Issue