diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-18 10:53:54 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-18 15:42:20 +0100 |
commit | f05a1c30c15d2ae35c11e241ca039a72eeb7d6ad (patch) | |
tree | 6d90c0de5dd3ad506e738d447e4f396951ed5624 /scripts | |
parent | 1174a8479ab9ee47b3305d668fe757435057a298 (diff) | |
download | PeerTube-f05a1c30c15d2ae35c11e241ca039a72eeb7d6ad.tar.gz PeerTube-f05a1c30c15d2ae35c11e241ca039a72eeb7d6ad.tar.zst PeerTube-f05a1c30c15d2ae35c11e241ca039a72eeb7d6ad.zip |
Don't show videos of remote instance after unfollow
Diffstat (limited to 'scripts')
-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 | |||