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

[fix] Fix tag and push tag

parent 4b7f4b91
No related branches found
No related tags found
No related merge requests found
[submodule "dist/desktop"]
path = dist/desktop
url = git@git.duniter.org:clients/cesium-grp/cesium-desktop.git
#[submodule "android"]
# path = platforms/android
# url = git@git.duniter.org:clients/cesium-grp/cesium-android.git
[submodule "android"]
path = platforms/android
url = git@git.duniter.org:clients/cesium-grp/cesium-android.git
......@@ -77,12 +77,19 @@ if [[ $? -ne 0 ]]; then
exit 1
fi
cd ${PROJECT_DIR}
git submodule init && git submodule sync && git submodule update --remote --merge
if [[ $? -ne 0 ]]; then
echo "Unable to sync git submodule. Could not build desktop version"
exit 1
fi
echo "----------------------------------"
echo "- Compiling sources..."
echo "----------------------------------"
# Compile
gulp config build --env default_fr
echo "----------------------------------"
echo "- Building Android artifact..."
echo "----------------------------------"
......@@ -96,6 +103,7 @@ if [[ -f "${APK_RELEASE_FILE}" ]]; then
cp ${APK_RELEASE_FILE} ${DIST_ANDROID}/${PROJECT_NAME}-v${current}-android.apk
fi;
echo "----------------------------------"
echo "- Building web artifact..."
echo "----------------------------------"
......@@ -104,6 +112,7 @@ if [[ $? -ne 0 ]]; then
exit 1
fi
echo "----------------------------------"
echo "- Executing git push, with tag: v$2"
echo "----------------------------------"
......@@ -127,13 +136,15 @@ if [[ $? -ne 0 ]]; then
fi
# Commit android project
#cd ${PROJECT_DIR}/platforms/android
#git reset HEAD
#git add -A
#git commit -m "v$2" && git tag "v$2" && git push
#if [[ $? -ne 0 ]]; then
# exit 1
#fi
cd ${PROJECT_DIR}/platforms/android
git reset HEAD
git add -A
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
echo "**********************************"
echo "* Uploading artifacts to Github..."
......@@ -152,11 +163,6 @@ echo "----------------------------------"
echo "- Building desktop artifacts..."
echo "----------------------------------"
git submodule init && git submodule sync && git submodule update --remote --merge
if [[ $? -ne 0 ]]; then
echo "Unable to sync git submodule. Could not build desktop version"
exit 1
fi
if [[ -d "${PROJECT_DIR}/dist/desktop" ]]; then
cd "${PROJECT_DIR}/dist/desktop"
......
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