1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-24 03:25:03 +03:00
This commit is contained in:
Tae Won Ha 2016-10-14 14:26:14 +02:00
parent 47b4b7a4f4
commit 0bed6504b2
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
3 changed files with 37 additions and 14 deletions

View File

@ -1,13 +1,16 @@
#!/bin/bash
# For jenkins
set -e
export PATH=/usr/local/bin:$PATH
# # parameters
BRANCH=$1
IS_SNAPSHOT=$2
MARKETING_VERSION=$3
# - BRANCH
# - IS_SNAPSHOT
# - MARKETING_VERSION
# - RELEASE_NOTES
./bin/prepare_repositories.sh
./bin/clean_old_builds.sh
@ -21,13 +24,6 @@ if [ ${IS_SNAPSHOT} = true ] ; then
COMPOUND_VERSION="v${MARKETING_VERSION}-${BUNDLE_VERSION}"
fi
#./bin/commit_and_push_tags.sh "${BRANCH}" "${COMPOUND_VERSION}"
./bin/commit_and_push_tags.sh "${BRANCH}" "${COMPOUND_VERSION}"
exit 0
pushd build/Release
VIMR_FILE_NAME="VimR-${COMPOUND_VERSION}.tar.bz2"
tar cjf "${VIMR_FILE_NAME}" VimR.app
popd
./bin/create_github_release.sh "${COMPOUND_VERSION}" "${RELEASE_NOTES}"

View File

@ -16,9 +16,9 @@ echo git push origin "${COMPOUND_VERSION}"
pushd neovim
echo "### Tagging neovim"
git tag -a -m "${COMPOUND_VERSION}" "${COMPOUND_VERSION}"
git tag -a -m "vimr/${COMPOUND_VERSION}" "vimr/${COMPOUND_VERSION}"
echo "### Pushing tag to neovim repository"
echo git push origin "${COMPOUND_VERSION}"
echo git push origin "vimr/${COMPOUND_VERSION}"
popd neovim

View File

@ -0,0 +1,27 @@
#!/bin/bash
COMPOUND_VERSION=$1
RELEASE_NOTES=$2
VIMR_FILE_NAME="VimR-${COMPOUND_VERSION}.tar.bz2"
pushd build/Release
tar cjf ${VIMR_FILE_NAME} VimR.app
echo "### Creating release"
GITHUB_TOKEN=$(cat ~/.config/github.qvacua.release.token) github-release release \
--user qvacua \
--repo vimr \
--tag "${COMPOUND_VERSION}" \
--name "${COMPOUND_VERSION}" \
--description "${RELEASE_NOTES}" \
--pre-release
echo "### Uploading build"
GITHUB_TOKEN=$(cat ~/.config/github.qvacua.release.token) github-release upload \
--user qvacua \
--repo vimr \
--tag "${COMPOUND_VERSION}" \
--name "${VIMR_FILE_NAME}" \
--file "${VIMR_FILE_NAME}"