From ea85576de1cbba64074a216e8d10e6160d071df9 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 29 Mar 2021 12:37:37 +0200 Subject: [PATCH] test multistep ps script --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3d017a1..bf16a29 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,7 +5,6 @@ variables: EXE_RELEASE_FOLDER: 'c:\Projetcs\Compiled\GPW\Release' DEPLOY_FOLDER: 'c:\Projects\Deploy\GPW\Builds' VERS_MAIN: '2.7' - REL_NUM: '4159' VERS_NUMBER: '$VERS_MAIN.2103.$CI_PIPELINE_IID' # EXE_RELEASE_FOLDER: 'YourApp\bin\Release' # MSI_RELEASE_FOLDER: 'Setup\bin\Release' @@ -42,7 +41,9 @@ variables: .version-fix: &version-fix - | echo "Set vers: $env:VERS_NUMBER" - & ((Get-Content -path 'VersGen\GPW.cs' -Raw) -replace '0.0.0.0','$env:VERS_NUMBER') | Set-Content -Path 'VersGen\GPW.cs' + $contenuto = Get-Content -path 'VersGen\GPW.cs' -Raw + $newContenuto = $contenuto -replace -replace '0.0.0.0','$env:VERS_NUMBER' + $newContenuto | Set-Content -Path 'VersGen\GPW.cs' stages: - build