1
0
Fork 0

Fix release script

This commit is contained in:
Chocobozzz 2018-08-21 09:29:13 +02:00
parent 3256a4a603
commit fc96e83d1c
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -47,8 +47,7 @@ printf "Changelog will be:\\n%s\\n" "$changelog"
read -p "Are you sure to release? " -n 1 -r read -p "Are you sure to release? " -n 1 -r
echo echo
if [[ ! $REPLY =~ ^[Yy]$ ]] if [[ ! $REPLY =~ ^[Yy]$ ]]; then
then
exit 0 exit 0
fi fi
@ -96,7 +95,12 @@ rm "./client/dist/embed-stats.json"
( (
git push origin --tag git push origin --tag
github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" --description "$changelog" "$github_prerelease_option" if [ -z "$github_prerelease_option" ]; then
github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" --description "$changelog"
else
github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" --description "$changelog" "$github_prerelease_option"
fi
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"
github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$zip_name.asc" --file "$zip_name.asc" github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$zip_name.asc" --file "$zip_name.asc"
github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$tar_name" --file "$tar_name" github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$tar_name" --file "$tar_name"