aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/angularjs.org/publish.sh
diff options
context:
space:
mode:
authorTobias Bosch2014-03-20 14:28:01 -0700
committerTobias Bosch2014-03-20 14:28:01 -0700
commitb26fc23b068b5de603b535e0ef63cb5deacf0789 (patch)
tree065d1235d72a91e52e55313a9d40e7d6d360f7a8 /scripts/angularjs.org/publish.sh
parent0c930a1a86b3e8c14a1ed87c91f074b434895f93 (diff)
downloadangular.js-b26fc23b068b5de603b535e0ef63cb5deacf0789.tar.bz2
chore(release): fix angularjs.org cdn script
Diffstat (limited to 'scripts/angularjs.org/publish.sh')
-rwxr-xr-xscripts/angularjs.org/publish.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/angularjs.org/publish.sh b/scripts/angularjs.org/publish.sh
index 3d78dc01..1e59335d 100755
--- a/scripts/angularjs.org/publish.sh
+++ b/scripts/angularjs.org/publish.sh
@@ -16,7 +16,6 @@ function init {
REPO_DIR=$TMP_DIR/angularjs.org
BRANCH_PATTERN=$(readJsonProp "$BASE_DIR/package.json" "branchVersion")
BUILD_DIR=$BASE_DIR/build
- NEW_VERSION=$(cat $BUILD_DIR/version.txt)
}
function prepare {
@@ -40,12 +39,12 @@ function prepare {
# Replace the version of the branch that we are updating
echo $BRANCH_PATTERN
- echo $NEW_VERSION
- replaceInFile "js/download-data.js" "branch:[ ]+'($BRANCH_PATTERN)',[ ]+version:[ ]+'$VERSION_REGEX'" "branch: '\1', version: '$NEW_VERSION'"
-
+ echo $CDN_VERSION
+ replaceInFile "js/download-data.js" "branch:[ ]+'($BRANCH_PATTERN)',[ ]+version:[ ]+'$VERSION_REGEX'" "branch: '\1', version: '$CDN_VERSION'"
+
git add index.html
git add js/download-data.js
- git commit -m "update(version): update angular version to $NEW_VERSION for branch $BRANCH_PATTERN"
+ git commit -m "update(version): update angular version to $CDN_VERSION for branch $BRANCH_PATTERN"
}
function publish {