1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-26 23:36:08 +03:00

GH-220 Fix script

This commit is contained in:
Tae Won Ha 2016-10-15 00:38:26 +02:00
parent 9a4a408aa5
commit 2749c5647d
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
2 changed files with 7 additions and 13 deletions

View File

@ -26,7 +26,7 @@ if [ "${IS_SNAPSHOT}" = true ] ; then
fi fi
VIMR_FILE_NAME="VimR-${COMPOUND_VERSION}.tar.bz2" VIMR_FILE_NAME="VimR-${COMPOUND_VERSION}.tar.bz2"
./bin/commit_and_push_tags.sh "${BRANCH}" "${TAG}" ${IS_SNAPSHOT} ./bin/commit_and_push_tags.sh "${BRANCH}" "${TAG}"
./bin/create_github_release.sh "${COMPOUND_VERSION}" "${TAG}" "${VIMR_FILE_NAME}" "${RELEASE_NOTES}" ./bin/create_github_release.sh "${COMPOUND_VERSION}" "${TAG}" "${VIMR_FILE_NAME}" "${RELEASE_NOTES}"

View File

@ -1,30 +1,24 @@
#!/bin/bash #!/bin/bash
BRANCH=$1 BRANCH=$1
COMPOUND_VERSION=$2 TAG=$2
IS_SNAPSHOT=$3
TAG_NAME=$COMPOUND_VERSION
if [ "${IS_SNAPSHOT}" = true ] ; then
TAG_NAME="snapshot/${COMPOUND_VERSION}"
fi
echo "### Committing version bump" echo "### Committing version bump"
git commit -am "Bump version: ${COMPOUND_VERSION}" git commit -am "Bump version: ${TAG}"
echo "### Tagging VimR" echo "### Tagging VimR"
git tag -a -m "${TAG_NAME}" "${TAG_NAME}" git tag -a -m "${TAG}" "${TAG}"
echo "### Pushing commit and tag to vimr repository" echo "### Pushing commit and tag to vimr repository"
git push origin HEAD:"${BRANCH}" git push origin HEAD:"${BRANCH}"
git push origin "${TAG_NAME}" git push origin "${TAG}"
pushd neovim pushd neovim
echo "### Tagging neovim" echo "### Tagging neovim"
git tag -a -m "vimr/${TAG_NAME}" "vimr/${TAG_NAME}" git tag -a -m "vimr/${TAG}" "vimr/${TAG}"
echo "### Pushing tag to neovim repository" echo "### Pushing tag to neovim repository"
git push origin "vimr/${TAG_NAME}" git push origin "vimr/${TAG}"
popd neovim popd neovim