From cb677f7a61d7c33db3f43decf8b11ad0edd45923 Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Mon, 24 Oct 2016 22:28:48 +0200 Subject: [PATCH] Don't mark releases as snapshots --- bin/build.sh | 2 +- bin/create_github_release.sh | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/build.sh b/bin/build.sh index 67565a4e..fba305d6 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -42,7 +42,7 @@ echo "### Tag: ${TAG}" echo "### VimR archive file name: ${VIMR_FILE_NAME}" ./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}" ${IS_SNAPSHOT} ./bin/set_appcast.py "build/Release/${VIMR_FILE_NAME}" "${BUNDLE_VERSION}" "${MARKETING_VERSION}" "${TAG}" ${IS_SNAPSHOT} ./bin/commit_and_push_appcast.sh "${BRANCH}" "${COMPOUND_VERSION}" ${IS_SNAPSHOT} diff --git a/bin/create_github_release.sh b/bin/create_github_release.sh index 358ec53c..e85643a7 100755 --- a/bin/create_github_release.sh +++ b/bin/create_github_release.sh @@ -6,11 +6,17 @@ COMPOUND_VERSION=$1 TAG=$2 VIMR_FILE_NAME=$3 RELEASE_NOTES=$4 +IS_SNAPSHOT=$5 pushd build/Release tar cjf ${VIMR_FILE_NAME} VimR.app +PRERELEASE="" +if [ "${IS_SNAPSHOT}" = true ] ; then + PRERELEASE="--pre-release" +fi + echo "### Creating release" GITHUB_TOKEN=$(cat ~/.config/github.qvacua.release.token) github-release release \ --user qvacua \ @@ -18,7 +24,7 @@ GITHUB_TOKEN=$(cat ~/.config/github.qvacua.release.token) github-release release --tag "${TAG}" \ --name "${COMPOUND_VERSION}" \ --description "${RELEASE_NOTES}" \ - --pre-release + "${PRERELEASE}" echo "### Uploading build" GITHUB_TOKEN=$(cat ~/.config/github.qvacua.release.token) github-release upload \