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

Fix release script

parent 8759fe71
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ echo "Current version: $current" ...@@ -7,7 +7,7 @@ echo "Current version: $current"
if [[ $1 =~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]+$ ]]; then if [[ $1 =~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]+$ ]]; then
sed -i "s/__version__ = '$current'/__version__ = '$1'/g" duniterpy/__init__.py sed -i "s/__version__ = '$current'/__version__ = '$1'/g" duniterpy/__init__.py
git commit duniterpy/__init__.py -m "$1" git commit duniterpy/__init__.py -m "$1"
git tag -a -m "$1" git tag "$1" -a -m "$1"
else else
echo "Wrong version format" echo "Wrong version format"
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment