mirror of https://github.com/Chocobozzz/PeerTube
Upgrade release script to support release branch
parent
67db1db105
commit
5e319fb789
|
@ -25,8 +25,8 @@ if [ -z "$GITHUB_TOKEN" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
branch=$(git symbolic-ref --short -q HEAD)
|
branch=$(git symbolic-ref --short -q HEAD)
|
||||||
if [ "$branch" != "develop" ]; then
|
if [ "$branch" != "develop" ] && [[ "$branch" != feature/* ]]; then
|
||||||
echo "Need to be on develop branch."
|
echo "Need to be on develop or release branch."
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -102,14 +102,14 @@ rm "./client/dist/embed-stats.json"
|
||||||
github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$tar_name" --file "$tar_name"
|
github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$tar_name" --file "$tar_name"
|
||||||
github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$tar_name.asc" --file "$tar_name.asc"
|
github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$tar_name.asc" --file "$tar_name.asc"
|
||||||
|
|
||||||
git push origin develop
|
git push origin "$branch"
|
||||||
|
|
||||||
# Only update master if it is not a pre release
|
# Only update master if it is not a pre release
|
||||||
if [ -z "$github_prerelease_option" ]; then
|
if [ -z "$github_prerelease_option" ]; then
|
||||||
# Update master branch
|
# Update master branch
|
||||||
git checkout master
|
git checkout master
|
||||||
git rebase develop
|
git merge "$branch"
|
||||||
git push origin master
|
git push origin master
|
||||||
git checkout develop
|
git checkout "$branch"
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue