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
|
||||
|
||||
version=$(git rev-parse --abbrev-ref HEAD)
|
||||
commit=$(git log --format="%H" -n 1)
|
||||
version="$(git symbolic-ref -q --short HEAD || git describe --tags --exact-match)"
|
||||
commit="$(git log --format="%H" -n 1)"
|
||||
|
||||
function compile {
|
||||
local os=$1
|
||||
|
|
Loading…
Reference in New Issue