X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=release.sh;h=01089e4865deb5b17315bacb194f59568f74b386;hb=253f4333cfa17c5b6802fd574cb1a7c0b3a02603;hp=dc0e81bd910249a5e68d9ed1d4283e5869c0e95c;hpb=7655a77a5e75c2626c10c4264c53d52fe9361f5b;p=dygraphs.git diff --git a/release.sh b/release.sh index dc0e81b..01089e4 100755 --- a/release.sh +++ b/release.sh @@ -42,11 +42,24 @@ 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 +git push --tags echo "Release was successful!" -echo "Don't forget to merge changes on this branch back into master." +echo "Pushing the new version to dygraphs.com..." +./push-to-web.sh dygraphs.com:dygraphs.com + +echo "Success!\n" +echo "Don't forget to merge changes on this branch back into master:" +echo "git merge --no-ff $branch" + +# Discourage users from working on the "releases" branch. +git checkout master