aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/release.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/release.sh')
-rwxr-xr-xscripts/release.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/release.sh b/scripts/release.sh
index ec76bb846..667df5a5f 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -21,6 +21,12 @@ if [ -z $GITHUB_TOKEN ]; then
21 exit -1 21 exit -1
22fi 22fi
23 23
24branch=$(git symbolic-ref --short -q HEAD)
25if [ "$branch" != "develop" ]; then
26 echo "Need to be on develop branch."
27 exit -1
28fi
29
24version="v$1" 30version="v$1"
25directory_name="peertube-$version" 31directory_name="peertube-$version"
26zip_name="peertube-$version.zip" 32zip_name="peertube-$version.zip"
@@ -56,3 +62,10 @@ git push origin --tag
56 62
57github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" 63github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version"
58github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$zip_name" --file "$zip_name" 64github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$zip_name" --file "$zip_name"
65
66# Update master branch
67git checkout master
68git rebase develop
69git git push origin master
70git checkout develop
71