Give branch in archive filenames

This commit is contained in:
Oliver Hamlet
2016-07-21 19:50:12 +01:00
parent c79a070dee
commit 01bb549d58
2 changed files with 11 additions and 4 deletions
+8 -1
View File
@@ -17,11 +17,18 @@ function vulcanize(rootPath) {
}
function getGitDescription() {
return String(childProcess.execFileSync('git', [
const describe = String(childProcess.execFileSync('git', [
'describe',
'--tags',
'--long',
])).slice(0, -1);
const branch = String(childProcess.execFileSync('git', [
'rev-parse',
'--abbrev-ref',
'HEAD',
])).slice(0, -1);
return `${describe}-${branch}`;
}
function compress(sourcePath, destPath) {