aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/release.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/scripts/release.sh b/scripts/release.sh
index 0e288a49c..d9ad6c54b 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -31,6 +31,19 @@ version="v$1"
31directory_name="peertube-$version" 31directory_name="peertube-$version"
32zip_name="peertube-$version.zip" 32zip_name="peertube-$version.zip"
33 33
34changelog=$(awk -v version="$version" '/## v/ { printit = $2 == version }; printit;' CHANGELOG.md | grep -v "$version" | sed '1{/^$/d}')
35
36echo "Changelog will be:\n"
37echo "$changelog"
38echo
39
40read -p "Are you sure to release? " -n 1 -r
41echo
42if [[ ! $REPLY =~ ^[Yy]$ ]]
43then
44 [[ "$0" = "$BASH_SOURCE" ]] && exit 0
45fi
46
34cd ./client || exit -1 47cd ./client || exit -1
35npm version --no-git-tag-version --no-commit-hooks $1 || exit -1 48npm version --no-git-tag-version --no-commit-hooks $1 || exit -1
36 49
@@ -60,7 +73,7 @@ cd "PeerTube" || exit -1
60 73
61git push origin --tag 74git push origin --tag
62 75
63github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" 76github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" --description "$changelog"
64github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$zip_name" --file "$zip_name" 77github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$zip_name" --file "$zip_name"
65 78
66git push origin develop 79git push origin develop