Skip to content
Snippets Groups Projects
Commit aed0dd84 authored by inso's avatar inso
Browse files

Add release script

parent 8f8c1b33
Branches
No related tags found
No related merge requests found
#!/bin/bash
#__version__ = '0.20.1dev9'
current=`grep -P "__version__ = \'\d+.\d+.\d+(\w*)\'" duniterpy/__init__.py | grep -oP "\d+.\d+.\d+(\w*)"`
echo "Current version: $current"
if [[ $1 =~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]+$ ]]; then
sed -i "s/__version__ = '$current'/__version__ = '$1'/g" duniterpy/__init__.py
git commit duniterpy/__init__.py -m "$1"
git tag "$1"
else
echo "Wrong version format"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment