Skip to content

Commit

Permalink
Modify release script from 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
kanitw committed Oct 27, 2016
1 parent e383f21 commit fa1f756
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy-gh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

git checkout gh-pages
git pull
git merge master --no-edit
git merge 1.x --no-edit

# update bower_components
git rm -rf bower_components
Expand All @@ -26,4 +26,4 @@ fi

# push and return to master!
git push
git checkout master
git checkout 1.x
2 changes: 1 addition & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ set -e
git tag -am "Release v$version." "v$version"

# swap back to the clean master and push the new tag
git checkout master
git checkout 1.x
git push --tags
# now the published tag contains build files which work great with bower.

Expand Down
2 changes: 1 addition & 1 deletion scripts/pre-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ NC='\033[0m' # No Color
type jq >/dev/null 2>&1 || { echo >&2 "I require jq but it's not installed. Aborting."; exit 1; }

# 0.2 check if on master
if [ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]; then
if [ "$(git rev-parse --abbrev-ref HEAD)" != "1.x" ]; then
echo "${RED}Not on master, please checkout master branch before running this script${NC}"
exit 1
fi
Expand Down

0 comments on commit fa1f756

Please sign in to comment.