aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Henrik Tjäder <henrik@tjaders.com> 2020-10-05 08:09:43 +0000
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2020-10-05 08:09:43 +0000
commit03bff3dd808d1d75b774953a2c9804905029e7cb (patch)
tree50eeb54a64d4f615cbebc3b25449a8763fb50c75
parent2f3dafe711912fbb45c14419cf410250a69f3b1d (diff)
downloadrtic-03bff3dd808d1d75b774953a2c9804905029e7cb.tar.gz
rtic-03bff3dd808d1d75b774953a2c9804905029e7cb.tar.zst
rtic-03bff3dd808d1d75b774953a2c9804905029e7cb.zip
v must be first in the tag, document the version
-rw-r--r--.github/workflows/build.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 22f13fa2..0fb14649 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -595,7 +595,11 @@ jobs:
run: |
langs=( en ru )
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 )
# Create directories