mirror of
https://github.com/gohugoio/hugo.git
synced 2025-12-13 20:36:04 +01:00
release: Skip pushing stable and docs update for pre-releases
This commit is contained in:
@@ -12,6 +12,12 @@ v=$1
|
||||
git merge "release-${v}" || die;
|
||||
git push || die;
|
||||
|
||||
# If $v contains -alpha, -beta or -rc, skip the remaining steps.
|
||||
if [[ "${v}" == *"-alpha"* || "${v}" == *"-beta"* || "${v}" == *"-rc"* ]]; then
|
||||
echo "Pre-release version detected; skipping stable and docs update."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
git checkout stable || die;
|
||||
git reset --hard "v${v}" || die;
|
||||
git push -f || die;
|
||||
|
||||
Reference in New Issue
Block a user