Skip to content

Commit

Permalink
prepare SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
orouits committed Dec 31, 2017
1 parent 0e57b21 commit c2e4e41
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion publish.sh
Expand Up @@ -27,12 +27,19 @@ rm -rf ".tmp"
if [[ "${RELEASE}" == "SNAPSHOT" ]]
then
echo "### Commit in GIT"
git commit -m "${RELEASE}" -a
git commit -m "prepare ${RELEASE}" -a
git push
echo "### Remove ${RELEASE} tag in GIT"
git tag -d ${RELEASE}
git push origin :${RELEASE}
echo "### Make ${RELEASE} tag in GIT"
git tag -a "${RELEASE}" -m "publish ${RELEASE}"
git push --tags
elif [[ "${RELEASE}" =~ ^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$ ]]
then
echo "### Commit in GIT"
git commit -m "prepare v${RELEASE}" -a
git push
echo "### Make v${RELEASE} tag in GIT"
git tag -a "v${RELEASE}" -m "publish v${RELEASE}"
git push --tags
Expand Down

0 comments on commit c2e4e41

Please sign in to comment.