From e33b53abb397fd4d3e7e94829f2099601f03657c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 15 Feb 2018 15:59:48 +0100 Subject: [PATCH] Handle changelog in release --- CHANGELOG.md | 13 +++++++++++++ scripts/release.sh | 15 ++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..1e5f7f8f2 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,13 @@ +# Changelog + +## v0.0.24-alpha + +### Features + +* Publish comments with *ctrl + enter* + +### Bug fixes + +* Don't stuck on active jobs +* Fix deleting a video with comments +* Fix infinite scroll (videos list) 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" directory_name="peertube-$version" zip_name="peertube-$version.zip" +changelog=$(awk -v version="$version" '/## v/ { printit = $2 == version }; printit;' CHANGELOG.md | grep -v "$version" | sed '1{/^$/d}') + +echo "Changelog will be:\n" +echo "$changelog" +echo + +read -p "Are you sure to release? " -n 1 -r +echo +if [[ ! $REPLY =~ ^[Yy]$ ]] +then + [[ "$0" = "$BASH_SOURCE" ]] && exit 0 +fi + cd ./client || exit -1 npm version --no-git-tag-version --no-commit-hooks $1 || exit -1 @@ -60,7 +73,7 @@ cd "PeerTube" || exit -1 git push origin --tag -github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" +github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" --description "$changelog" github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$zip_name" --file "$zip_name" git push origin develop -- 2.41.0