diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-21 09:29:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-21 09:37:11 +0200 |
commit | fc96e83d1c2d008e3b02460a7a3a4232a0c96561 (patch) | |
tree | a7977573b4d4bb39a30aa431f26651030a93df06 /scripts/release.sh | |
parent | 3256a4a6035af8e09bb243837166d663d185ceae (diff) | |
download | PeerTube-fc96e83d1c2d008e3b02460a7a3a4232a0c96561.tar.gz PeerTube-fc96e83d1c2d008e3b02460a7a3a4232a0c96561.tar.zst PeerTube-fc96e83d1c2d008e3b02460a7a3a4232a0c96561.zip |
Fix release script
Diffstat (limited to 'scripts/release.sh')
-rwxr-xr-x | scripts/release.sh | 10 |
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 | ||
48 | read -p "Are you sure to release? " -n 1 -r | 48 | read -p "Are you sure to release? " -n 1 -r |
49 | echo | 49 | echo |
50 | if [[ ! $REPLY =~ ^[Yy]$ ]] | 50 | if [[ ! $REPLY =~ ^[Yy]$ ]]; then |
51 | then | ||
52 | exit 0 | 51 | exit 0 |
53 | fi | 52 | fi |
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" |