diff options
Diffstat (limited to 'scripts/release.sh')
-rwxr-xr-x | scripts/release.sh | 13 |
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 |
22 | fi | 22 | fi |
23 | 23 | ||
24 | branch=$(git symbolic-ref --short -q HEAD) | ||
25 | if [ "$branch" != "develop" ]; then | ||
26 | echo "Need to be on develop branch." | ||
27 | exit -1 | ||
28 | fi | ||
29 | |||
24 | version="v$1" | 30 | version="v$1" |
25 | directory_name="peertube-$version" | 31 | directory_name="peertube-$version" |
26 | zip_name="peertube-$version.zip" | 32 | zip_name="peertube-$version.zip" |
@@ -56,3 +62,10 @@ git push origin --tag | |||
56 | 62 | ||
57 | github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" | 63 | github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" |
58 | github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$zip_name" --file "$zip_name" | 64 | github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$zip_name" --file "$zip_name" |
65 | |||
66 | # Update master branch | ||
67 | git checkout master | ||
68 | git rebase develop | ||
69 | git git push origin master | ||
70 | git checkout develop | ||
71 | |||