Fix latest release tag, introduce a.b.c-d versioning

This commit is contained in:
Edwin Jakobs
2022-07-08 18:39:46 +02:00
parent 909431a844
commit 82502d9d54

View File

@@ -3,13 +3,13 @@ on:
push: push:
tags: tags:
- v[0-9].[0-9]+.[0-9]+ - 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: jobs:
build: build:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- name: Get OPENRNDR release tag - 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 - uses: actions/checkout@v2
- name: Get the version - name: Get the version
id: get_version id: get_version