Skip to content

Commit

Permalink
handle output repos when promoting canary to beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly Selden committed Oct 21, 2016
1 parent f4ab918 commit 8d384f9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
4 changes: 3 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,10 @@ ember serve

* if normal release
* run `./dev/add-to-output-repos.sh`
* if beta release
* if normal beta release
* run `./dev/add-to-output-repos.sh beta`
* if promoting canary to beta
* run `./dev/add-to-output-repos.sh beta fork`
* copy the [`ember new` diff] and [`ember addon` diff] lines from the previous
release changelog and paste into the current, then update the url with the
newer tags
Expand Down
26 changes: 22 additions & 4 deletions dev/add-to-output-repos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@ cd "`git rev-parse --show-toplevel`"
mkdir -p tmp
cd tmp

branch=stable
stable_branch=stable
beta_branch=master

branch=$stable_branch
if [ "$1" = "beta" ]; then
branch=master
if [ "$2" = "fork" ]; then
fork=true
else
branch=$beta_branch
fi
fi

EMBERVERSION=`ember version | grep "ember-cli:" | cut -d' ' -f2`

commands=(new addon)
commands=(new)

for i in ${commands[@]}; do
command=$i
Expand All @@ -29,10 +36,21 @@ for i in ${commands[@]}; do
cp -r $local_folder/ .
rm -r $local_folder

# start a new beta branch off the just released stable
if $fork; then
git branch -d $beta_branch
git branch $beta_branch
git checkout $beta_branch
fi

git add --all
git commit -m $EMBERVERSION
git tag "v"$EMBERVERSION
git push
if $fork; then
git push -f
else
git push
fi
git push --tags

popd
Expand Down

0 comments on commit 8d384f9

Please sign in to comment.