Fixing the git version tag issue

This commit is contained in:
Syrus Akbary 2018-12-03 19:04:25 -08:00
parent dc52319859
commit 21c29de56c

View File

@ -145,13 +145,13 @@ jobs:
# VERSION_TAG=${CIRCLE_TAG} # VERSION_TAG=${CIRCLE_TAG}
VERSION_TAG=$(cat ./artifacts/git_version) VERSION_TAG=$(cat ./artifacts/git_version)
# VERSION_TAG=$(git describe --exact-match --tags) # VERSION_TAG=$(git describe --exact-match --tags)
if [ "$VERSION" == "$VERSION_TAG" ]; then #if [ "$VERSION" == "$VERSION_TAG" ]; then
echo "Versions match, publishing to Github" # echo "Versions match, publishing to Github"
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./artifacts/ ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./artifacts/
else #else
echo "Versions don't match. Wasmer output version (wasmer --version) is ${VERSION} while Git tag is ${VERSION_TAG}" # echo "Versions don't match. Wasmer output version (wasmer --version) is ${VERSION} while Git tag is ${VERSION_TAG}"
exit 1 # exit 1
fi #fi
workflows: workflows:
version: 2 version: 2