Trying to build a relase system

This commit is contained in:
Robert van den Breemen 2023-02-18 20:26:02 +01:00
parent 997e93749d
commit d84c4397a1
2 changed files with 38 additions and 0 deletions

24
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: release-workflow
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: echo ${{ github.sha }} > Release.txt
- name: Test
run: cat Release.txt
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
Release.txt
LICENSE

View File

@ -2,6 +2,7 @@
#define _VERSION_MAJOR 0
#define _VERSION_MINOR 10
#define _VERSION_PATCH 1
<<<<<<< Updated upstream
#define _VERSION_BUILD 2045
#define _VERSION_GITHASH "867432a"
//#define _VERSION_PRERELEASE beta //uncomment to define prerelease labels: alpha - beta - rc
@ -13,4 +14,17 @@
#define _SEMVER_FULL "0.10.1+867432a"
#define _SEMVER_NOBUILD "0.10.1 (11-02-2023)"
#define _VERSION "0.10.1+867432a (11-02-2023)"
=======
#define _VERSION_BUILD 2068
#define _VERSION_GITHASH "d4d33c7"
//#define _VERSION_PRERELEASE beta //uncomment to define prerelease labels: alpha - beta - rc
#define _VERSION_DATE "18-02-2023"
#define _VERSION_TIME "19:56:37"
#define _SEMVER_CORE "0.10.1"
#define _SEMVER_BUILD "0.10.1+2068"
#define _SEMVER_GITHASH "0.10.1+d4d33c7"
#define _SEMVER_FULL "0.10.1+d4d33c7"
#define _SEMVER_NOBUILD "0.10.1 (18-02-2023)"
#define _VERSION "0.10.1+d4d33c7 (18-02-2023)"
>>>>>>> Stashed changes
//The version information is created automatically, more information here: https://github.com/rvdbreemen/autoinc-semver