diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 11b2e6d0..ad4d1e05 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,7 @@ variables: DEPLOY_FOLDER: 'c:\Projects\Deploy\MoonPro\Builds' VERS_MAIN: '6.14' NEW_REL: '' + NEW_DEB: '' NEXUS_PATH: 'MP-XXXX' APP_NAME: 'MP.Xxxx' APP_CONF: 'Release' @@ -99,7 +100,9 @@ variables: $newContenuto | Set-Content -Path 'VersGen\MoonPro.cs' echo "Modifica dati file nuspec Release" $currRelease = $env:NEW_REL + $lastDot = $currRelease.LastIndexOf("."); $currDebug = $currRelease.Substring(0, $lastDot)+"-beta"+$currRelease.Substring($lastDot); + $env:NEW_DEB = $currDebug $find = "(.|\n)*?"; $fileNameRel = "MapoSDK.Release.nuspec"; $replRel = "" + $currRelease + ""; @@ -161,11 +164,11 @@ SDK-unstable: - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' - *version-fix script: - - '& "$env:MSBUILD_PATH" MapoSDK/MapoSDK.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/Release /verbosity:minimal /m' + - '& "$env:MSBUILD_PATH" MapoSDK/MapoSDK.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/Debug /verbosity:minimal /m' - '& Remove-Item *.nupkg' - '& $env:NUGET_PATH pack MapoSDK.Debug.nuspec' - '& $env:NUGET_PATH setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source https://nexus.steamware.net/repository/nuget-hosted' - - '& $env:NUGET_PATH push MapoSDK.$env:NEW_REL.nupkg -Source https://nexus.steamware.net/repository/nuget-hosted' + - '& $env:NUGET_PATH push MapoSDK.$env:NEW_DEB.nupkg -Source https://nexus.steamware.net/repository/nuget-hosted' ADM:build: stage: build diff --git a/MapoSDK.Debug.nuspec b/MapoSDK.Debug.nuspec index 1adcb020..3af1ad7b 100644 --- a/MapoSDK.Debug.nuspec +++ b/MapoSDK.Debug.nuspec @@ -10,9 +10,13 @@ SDK for MAPO solutions - beta/unstable #releaseNotes# #copyright# - MAPO;SDK;IOB + MAPO SDK IOB + + + + \ No newline at end of file diff --git a/MapoSDK.Release.nuspec b/MapoSDK.Release.nuspec index 1f896c8e..cbc0b199 100644 --- a/MapoSDK.Release.nuspec +++ b/MapoSDK.Release.nuspec @@ -4,15 +4,18 @@ MapoSDK #version# MapoSDK - Samuele E. Locatelli + Samuele E. Locatelli, EgalWare false MIT SDK for MAPO solutions #releaseNotes# #copyright# - MAPO;SDK;IOB + MAPO SDK IOB + + + \ No newline at end of file