Merge pull request #4858 from 3d-gussner/MK3_build_tags
Add `t` and `c` build
This commit is contained in:
commit
f3e0dfd481
|
|
@ -8,6 +8,8 @@ on:
|
||||||
branches: [ MK3, MK3_* ]
|
branches: [ MK3, MK3_* ]
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
- 't*'
|
||||||
|
- 'c*'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GH_ANNOTATIONS: 1
|
GH_ANNOTATIONS: 1
|
||||||
|
|
@ -69,10 +71,11 @@ jobs:
|
||||||
path: build/*.hex
|
path: build/*.hex
|
||||||
|
|
||||||
- name: RELEASE THE KRAKEN
|
- name: RELEASE THE KRAKEN
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/t') || startsWith(github.ref, 'refs/tags/c')
|
||||||
uses: "marvinpinto/action-automatic-releases@latest"
|
uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
automatic_release_tag: ${{ github.ref_name }}
|
||||||
draft: true
|
draft: true
|
||||||
files: |
|
files: |
|
||||||
${{ github.workspace }}/build/release/*.hex
|
${{ github.workspace }}/build/release/*.hex
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ message(STATUS "Filename debug suffix ...........: ${FN_VERSION_DEBUG_SUFFIX}")
|
||||||
# SET(FW_COMMIT_DSC "v3.13.0-1234")
|
# SET(FW_COMMIT_DSC "v3.13.0-1234")
|
||||||
|
|
||||||
if(NOT "${PROJECT_VERSION_HASH}" STREQUAL "UNKNOWN" AND NOT "${FW_COMMIT_DSC}" MATCHES ".+NOTFOUND.+") # else -> no commit hash is known... likely no git.
|
if(NOT "${PROJECT_VERSION_HASH}" STREQUAL "UNKNOWN" AND NOT "${FW_COMMIT_DSC}" MATCHES ".+NOTFOUND.+") # else -> no commit hash is known... likely no git.
|
||||||
string(REGEX MATCH "[v|t]([0-9]+)\.([0-9]+)\.([0-9]+)-?(${DEV_TAG_REGEX})?([0-9]+)?-([0-9]+)" TAG_VERSION "${FW_COMMIT_DSC}")
|
string(REGEX MATCH "[v|t|c]([0-9]+)\.([0-9]+)\.([0-9]+)-?(${DEV_TAG_REGEX})?([0-9]+)?-([0-9]+)" TAG_VERSION "${FW_COMMIT_DSC}")
|
||||||
|
|
||||||
if (CMAKE_MATCH_4) # Do we have a build type?
|
if (CMAKE_MATCH_4) # Do we have a build type?
|
||||||
decode_flavor_code(PROJECT_VER_TAG_FLV "${CMAKE_MATCH_4}" "${CMAKE_MATCH_5}")
|
decode_flavor_code(PROJECT_VER_TAG_FLV "${CMAKE_MATCH_4}" "${CMAKE_MATCH_5}")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue