Skip to content
Snippets Groups Projects
Commit 0c2a45a6 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Fix tag and push tag

parent 73aa4531
No related branches found
No related tags found
No related merge requests found
......@@ -108,6 +108,12 @@ echo "----------------------------------"
echo "- Executing git push, with tag: v$2"
echo "----------------------------------"
description="$4"
if [[ "_$description" == "_" ]]; then
description="Release v$2"
fi
# Commit
cd ${PROJECT_DIR}
git reset HEAD
......@@ -115,7 +121,9 @@ git add package.json config.xml install.sh www/js/config.js www/manifest.json
if [[ $? -ne 0 ]]; then
exit 1
fi
git commit -m "v$2" && git tag -f "v$2" && git push
git commit -m "v$2"
git tag -f -a "v$2" -m "${description}"
git push origin "v$2"
if [[ $? -ne 0 ]]; then
exit 1
fi
......@@ -136,10 +144,6 @@ echo "**********************************"
echo " Waiting 40s, for propagation to github..."
sleep 40s
description="$4"
if [[ "_$description" == "_" ]]; then
description="Release v$2"
fi
./github.sh $1 ''"$description"''
if [[ $? -ne 0 ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment