aboutsummaryrefslogtreecommitdiffhomepage
path: root/merge-release.sh
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-10-08 19:32:53 +0200
committerBjørn Erik Pedersen <[email protected]>2020-10-08 19:32:53 +0200
commitc98132e30e01a9638e61bd888c769d30e4e43ad5 (patch)
treea21bfcbb6a555075833ba6a3e52ef1f17eecf369 /merge-release.sh
parent33e9d79b78b32d0cc19693ab3c29ba9941d80f8f (diff)
downloadhugo-c98132e30e01a9638e61bd888c769d30e4e43ad5.tar.gz
hugo-c98132e30e01a9638e61bd888c769d30e4e43ad5.zip
Add merge helper
Diffstat (limited to 'merge-release.sh')
-rwxr-xr-xmerge-release.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/merge-release.sh b/merge-release.sh
new file mode 100755
index 000000000..a87f9f4a1
--- /dev/null
+++ b/merge-release.sh
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+
+if (( $# < 1 ));
+ then
+ echo "USAGE: ./merge-release.sh 0.76.0"
+ exit 1
+fi
+
+die() { echo "$*" 1>&2 ; exit 1; }
+
+v=$1
+git merge "release-${v}" || die;
+git push || die;
+
+git checkout stable || die;
+git reset --hard "v${v}" || die;
+git push -f || die;
+
+git checkout master || die;
+
+ git subtree push --prefix=docs/ docs-local "tempv${v}";
+
+