v must be first in the tag, document the version

This commit is contained in:
Henrik Tjäder 2020-10-05 08:09:43 +00:00
parent 2f3dafe711
commit 03bff3dd80

View file

@ -595,7 +595,11 @@ jobs:
run: | run: |
langs=( en ru ) langs=( en ru )
devver=dev devver=dev
stable=$(git tag | grep v | grep -v "-" | tail -n 1 | cut -c2-4) # Query git for tagged releases, all releases start with "v"
# followed by MAJOR.MINOR.PATCH, see semver.org
# Then remove all pre-releases/tags with hyphens (-).
# The latest release is last, finally trim "v" and PATCH
stable=$(git tag | grep "^v" | grep -v "-" | tail -n 1 | cut -c2-4)
vers=( 0.5.x 0.4.x ) vers=( 0.5.x 0.4.x )
# Create directories # Create directories