From 8b94443ba290cad1ca1cda3eb5763d2fc43f029a Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 8 Jul 2019 19:10:30 +0300 Subject: [PATCH] scripts: travis: make PRs succeed, add a note about moving to GitHub Releases --- scripts/travis-deploy.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/scripts/travis-deploy.sh b/scripts/travis-deploy.sh index 7b1a530c..a3389afa 100755 --- a/scripts/travis-deploy.sh +++ b/scripts/travis-deploy.sh @@ -7,7 +7,8 @@ die() } if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then - die "Travis should not deploy from pull requests" + echo "Travis should not deploy from pull requests" + exit 0 fi append_readme() @@ -18,8 +19,23 @@ append_readme() done } +generate_continious_tag() +{ + if [ $TRAVIS_BRANCH == "master" ]; then + echo "continuous" + else + echo "continuous-$TRAVIS_BRANCH" + fi +} + generate_readme() { + TAG=$(generate_continuous_tag) + echo \# Moved to GitHub Releases at [here]\(https://github.com/FWGS/xash3d-fwgs/releases/tag/$TAG\) >> README.md + echo >> README.md + echo >> README.md + echo >> README.md + echo >> README.md echo \# $TRAVIS_BRANCH branch autobuilds from $DEPLOY_BRANCH >> README.md echo >> README.md echo Short changelog: >> README.md