Skip to content

Commit

Permalink
fix(scripts) get version after finalizing it
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed May 10, 2024
1 parent e3fcb87 commit e8110f6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/create-release
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,23 @@ if [ "$1" = "--tag" ] ; then
shift
fi

# Grab version
version=$(sed -n '/^VERSION =/ s/.*"\(.*\)"/\1/p' weblate/utils/version.py)
namever="weblate-$version"

# What are we going to build?
if [ "$DO_TAG" -eq 1 ] ; then
./scripts/prepare-release

# Grab version
version=$(sed -n '/^VERSION =/ s/.*"\(.*\)"/\1/p' weblate/utils/version.py)
namever="weblate-$version"

# Tag release
git tag -s "$namever" -m "Version $version"
cd ~/weblate/test
git pull -q
git tag -s "$namever" -m "Test data for version $version"
cd ~/weblate/weblate

# Git tags
# Push git tags
git push --tags
cd ~/weblate/test
git push --tags
Expand Down

0 comments on commit e8110f6

Please sign in to comment.