Handle changelog in release
This commit is contained in:
parent
2422c46b27
commit
e33b53abb3
|
@ -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)
|
|
@ -31,6 +31,19 @@ version="v$1"
|
||||||
directory_name="peertube-$version"
|
directory_name="peertube-$version"
|
||||||
zip_name="peertube-$version.zip"
|
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
|
cd ./client || exit -1
|
||||||
npm version --no-git-tag-version --no-commit-hooks $1 || 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
|
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"
|
github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$zip_name" --file "$zip_name"
|
||||||
|
|
||||||
git push origin develop
|
git push origin develop
|
||||||
|
|
Loading…
Reference in New Issue