aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-21 09:29:13 +0200
committerChocobozzz <me@florianbigard.com>2018-08-21 09:37:11 +0200
commitfc96e83d1c2d008e3b02460a7a3a4232a0c96561 (patch)
treea7977573b4d4bb39a30aa431f26651030a93df06 /scripts
parent3256a4a6035af8e09bb243837166d663d185ceae (diff)
downloadPeerTube-fc96e83d1c2d008e3b02460a7a3a4232a0c96561.tar.gz
PeerTube-fc96e83d1c2d008e3b02460a7a3a4232a0c96561.tar.zst
PeerTube-fc96e83d1c2d008e3b02460a7a3a4232a0c96561.zip
Fix release script
Diffstat (limited to 'scripts')
-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"