aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/release.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/release.sh')
-rwxr-xr-xscripts/release.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/release.sh b/scripts/release.sh
index 4b45c959d..ef6399b68 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -47,8 +47,7 @@ printf "Changelog will be:\\n%s\\n" "$changelog"
47 47
48read -p "Are you sure to release? " -n 1 -r 48read -p "Are you sure to release? " -n 1 -r
49echo 49echo
50if [[ ! $REPLY =~ ^[Yy]$ ]] 50if [[ ! $REPLY =~ ^[Yy]$ ]]; then
51then
52 exit 0 51 exit 0
53fi 52fi
54 53
@@ -96,7 +95,12 @@ rm "./client/dist/embed-stats.json"
96( 95(
97 git push origin --tag 96 git push origin --tag
98 97
99 github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" --description "$changelog" "$github_prerelease_option" 98 if [ -z "$github_prerelease_option" ]; then
99 github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" --description "$changelog"
100 else
101 github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" --description "$changelog" "$github_prerelease_option"
102 fi
103
100 github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$zip_name" --file "$zip_name" 104 github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$zip_name" --file "$zip_name"
101 github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$zip_name.asc" --file "$zip_name.asc" 105 github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$zip_name.asc" --file "$zip_name.asc"
102 github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$tar_name" --file "$tar_name" 106 github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$tar_name" --file "$tar_name"