diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f37e3c3..29d6503 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,7 +45,16 @@ variables: .nuspec-fix: &nuspec-fix - | echo "Modifica dati file nuspec Release" - $currRelease = $env:NU_TYPE == "Release" ? $env:NUM_REL : $env:NUM_DEB + rules: + - if: $env:NU_TYPE == "Release" + variables: + $currRelease: $env:NUM_REL + + if: $env:NU_TYPE == "Debug" + variables: + $currRelease: $env:NUM_DEB + + # $currRelease = $env:NU_TYPE == "Release" ? $env:NUM_REL : $env:NUM_DEB $currDebug = $env:NUM_DEB $currCopy = $env:NEW_COPYRIGHT $fileNameRel = "$env:APP_NAME/$env:APP_NAME.csproj";