mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Add merge helper
This commit is contained in:
parent
33e9d79b78
commit
c98132e30e
1 changed files with 23 additions and 0 deletions
23
merge-release.sh
Executable file
23
merge-release.sh
Executable file
|
@ -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}";
|
||||
|
||||
|
Loading…
Reference in a new issue