diff --git a/release.sh b/release.sh index 0c8934bd48623baf9432f4282e9939140570aaca..84c40696316045fd1ce528fd92ab2d3366dc1926 100755 --- a/release.sh +++ b/release.sh @@ -6,12 +6,12 @@ echo "Current version: $current" if [[ $1 =~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]*$ ]]; then # update version in duniterpy - sed -i "s/__version__ = \"$current\"/__version__ = \"$1\"/g" duniterpy/__init__.py + sed -i "s/__version__ = \".*\"/__version__ = \"$1\"/g" duniterpy/__init__.py # update version in pyproject.toml poetry version "$1" # update version in documentation configuration - sed -i "s/version = \"$current\"/version = \"$1\"/g" docs/conf.py - sed -i "s/release = \"$current\"/release = \"$1\"/g" docs/conf.py + sed -i "s/version = \".*\"/version = \"$1\"/g" docs/conf.py + sed -i "s/release = \".*\"/release = \"$1\"/g" docs/conf.py # commit changes and add version tag git commit pyproject.toml duniterpy/__init__.py docs/conf.py -m "$1" git tag "$1" -a -m "$1"