Browse Source

Deploy redundancy

widget
Lee Willis 6 years ago
parent
commit
f66bd4a206
  1. 6
      deploy.sh

6
deploy.sh

@ -36,12 +36,9 @@ echo "Versions match in readme.txt and $MAINFILE. Let's proceed..."
if git show-ref --tags --quiet --verify -- "refs/tags/$NEWVERSION1"
then
echo "Version $NEWVERSION1 already exists as git tag. Exiting....";
exit 1;
echo "Version $NEWVERSION1 already exists as git tag.";
else
echo "Git version does not exist. Let's proceed..."
fi
cd $GITPATH
echo -e "Enter a commit message for this new version: \c"
read COMMITMSG
@ -49,6 +46,7 @@ git commit -am "$COMMITMSG"
echo "Tagging new version in git"
git tag -a "$NEWVERSION1" -m "Tagging version $NEWVERSION1"
fi
echo "Pushing latest commit to origin, with tags"
git push origin master

Loading…
Cancel
Save