Verified Commit ac932e55 authored by Thomas Citharel's avatar Thomas Citharel 🏃🏻
Browse files

Add release file

Signed-off-by: Thomas Citharel's avatarThomas Citharel <>
parent fb04860c
set -eu
if [ -z "$1" ]; then
echo "Need version as argument"
exit -1
changelog=$(awk -v version="$version" '/^## / { printit = $2 == version }; printit' | grep -v "## $version" | sed '1{/^$/d}')
printf "Changelog will be:\\n\\n%s\\n\\n" "$changelog"
read -p "Are you sure to release? " -n 1 -r
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 0
git tag -s -a "$version" -m "$changelog"
git push origin "$version"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment