aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-15 15:59:48 +0100
committerChocobozzz <me@florianbigard.com>2018-02-15 15:59:48 +0100
commite33b53abb397fd4d3e7e94829f2099601f03657c (patch)
tree04bc57117836642ad98c8cd69f3c09161e909e6a
parent2422c46b27790d94fd29a7092170cee5a1b56008 (diff)
downloadPeerTube-e33b53abb397fd4d3e7e94829f2099601f03657c.tar.gz
PeerTube-e33b53abb397fd4d3e7e94829f2099601f03657c.tar.zst
PeerTube-e33b53abb397fd4d3e7e94829f2099601f03657c.zip
Handle changelog in release
-rw-r--r--CHANGELOG.md13
-rwxr-xr-xscripts/release.sh15
2 files changed, 27 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 000000000..1e5f7f8f2
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,13 @@
1# Changelog
2
3## v0.0.24-alpha
4
5### Features
6
7* Publish comments with *ctrl + enter*
8
9### Bug fixes
10
11* Don't stuck on active jobs
12* Fix deleting a video with comments
13* 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"
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