Skip to content

Commit

Permalink
update release.sh script to do releases on "releases" branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Aug 29, 2013
1 parent b66a63b commit 172be78
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,19 @@ if [ $? -ne 0 ]; then
exit 1
fi

# Everything is good. Tag this release and push it.
# Everything is good.
# Switch to the "releases" branch, merge this change and tag it.
echo "Switching branches to do the release."
git checkout releases
git merge --no-ff $branch

COMMIT=$(git rev-parse HEAD)
echo "Tagging commit $COMMIT as version $VERSION"
git tag -a "v$VERSION" -m "Release of version $VERSION"
git push --tags

echo "Release was successful!"
echo "Don't forget to merge changes on this branch back into master."

# Discourage users from working on the "releases" branch.
git checkout master

0 comments on commit 172be78

Please sign in to comment.