From 82502d9d54423221455b7acee317762ac5bce172 Mon Sep 17 00:00:00 2001 From: Edwin Jakobs Date: Fri, 8 Jul 2022 18:39:46 +0200 Subject: [PATCH] Fix latest release tag, introduce a.b.c-d versioning --- .github/workflows/release-to-maven-central.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-to-maven-central.yml b/.github/workflows/release-to-maven-central.yml index aba16e0df..801c47b42 100644 --- a/.github/workflows/release-to-maven-central.yml +++ b/.github/workflows/release-to-maven-central.yml @@ -3,13 +3,13 @@ on: push: tags: - v[0-9].[0-9]+.[0-9]+ - - v[0-9].[0-9]+.[0-9]+.[0-9]+ + - v[0-9].[0-9]+.[0-9]+-[0-9]+ jobs: build: runs-on: ubuntu-18.04 steps: - name: Get OPENRNDR release tag - run: echo "OPENRNDR_VERSION=$(git ls-remote --refs --tags https://github.com/openrndr/openrndr | cut --delimiter='/' --fields=3 | sort --version-sort | tail --lines=1)" >> $GITHUB_ENV + run: echo "OPENRNDR_VERSION=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' https://github.com/openrndr/openrndr | cut --delimiter='/' --fields=3 | tail --lines=1)" >> $GITHUB_ENV - uses: actions/checkout@v2 - name: Get the version id: get_version