From 49395759e735a48ed3cc65eb998a031a79ed2378 Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Sat, 26 Nov 2022 15:41:20 +0100 Subject: [PATCH] fix(ci): Re-add version param to build with mono step (#1926) * fix(ci): Re-add version param to build with mono step * fix(ci): missing SEMVER variable Co-authored-by: Matteo Cominetti --- .circleci/scripts/config-template.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/scripts/config-template.yml b/.circleci/scripts/config-template.yml index b3b20a9eb4..40a802e927 100644 --- a/.circleci/scripts/config-template.yml +++ b/.circleci/scripts/config-template.yml @@ -281,7 +281,9 @@ jobs: # Each project will have individual jobs for each specific task it has to - run: name: Build << parameters.slnname >> command: | - msbuild << parameters.slnname >>/<< parameters.slnname >>.sln /r /p:Configuration='<< parameters.build-config >>' /p:WarningLevel=0 /p:IsDesktopBuild=false + TAG=$(if [ "${CIRCLE_TAG}" ]; then echo $CIRCLE_TAG; else echo "2.0.999"; fi;) + SEMVER=$(echo "$TAG" | sed -e 's/\/[a-zA-Z-]*//') + msbuild << parameters.slnname >>/<< parameters.slnname >>.sln /r /p:Configuration='<< parameters.build-config >>' /p:WarningLevel=0 /p:IsDesktopBuild=false /p:Version=$SEMVER # Compress build files - run: name: Zip Objects Kit files