Skip to content
Snippets Groups Projects
Commit ebba1a23 authored by Moul's avatar Moul
Browse files

[doc] Fix regex to update the documentation version

parent 3d5a0252
No related branches found
No related tags found
2 merge requests!119Release 0.61.0,!114[doc] Fix regex to update the documentation version
Pipeline #10267 waiting for manual action
......@@ -10,8 +10,8 @@ if [[ $1 =~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]*$ ]]; then
# 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 = \"$current\"/version = \"$1\"/g" docs/conf.py
sed -i "s/release = \"$current\"/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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment