diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6a846f19..11b2e6d0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -92,9 +92,32 @@ variables:
- |
$env:NEW_REL = $env:VERS_MAIN+"."+(get-date –format yyMM)+"."+(get-date –format dHH)
echo "Set vers: $env:NEW_REL"
+ $anno = (get-date -format yyyy)
+ $adesso = (get-date -format dd:HH:mm)
$contenuto = Get-Content -path 'VersGen\MoonPro.cs' -Raw
$newContenuto = $contenuto -replace '0.0.0.0', $env:NEW_REL
$newContenuto | Set-Content -Path 'VersGen\MoonPro.cs'
+ echo "Modifica dati file nuspec Release"
+ $currRelease = $env:NEW_REL
+ $currDebug = $currRelease.Substring(0, $lastDot)+"-beta"+$currRelease.Substring($lastDot);
+ $find = "(.|\n)*?";
+ $fileNameRel = "MapoSDK.Release.nuspec";
+ $replRel = "" + $currRelease + "";
+ $replCopy = "Copyright SteamWare-EgalWare, 2007-" + $anno
+ $nuspDataRel = Get-Content $fileNameRel;
+ $nuspDataRelUpd = $nuspDataRel -replace $find, $replRel;
+ $nuspDataRelUpd = $nuspDataRelUpd -replace "#copyright#", $replCopy;
+ $nuspDataRelUpd = $nuspDataRelUpd -replace "#releaseNotes#", "Build $adesso";
+ Set-Content -Path $fileNameRel -Value $nuspDataRelUpd;
+ echo "Modifica dati file nuspec Debug"
+ $fileNameDeb = "MapoSDK.Debug.nuspec";
+ $replDeb = "" + $currDebug + "";
+ $nuspDataDeb = Get-Content $fileNameDeb;
+ $nuspDataDebUpd = $nuspDataDeb -replace $find, $replDeb;
+ $nuspDataDebUpd = $nuspDataDebUpd -replace "#copyright#", $replCopy;
+ $nuspDataDebUpd = $nuspDataDebUpd -replace "#releaseNotes#", "Build $adesso";
+ Set-Content -Path $fileNameDeb -Value $nuspDataDebUpd;
+ echo "replace completati"
stages:
- build
@@ -104,7 +127,7 @@ stages:
- installer
-SDK:
+SDK-stable:
stage: sdk
tags:
- win
@@ -120,11 +143,30 @@ SDK:
script:
- '& "$env:MSBUILD_PATH" MapoSDK/MapoSDK.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/Release /verbosity:minimal /m'
- '& Remove-Item *.nupkg'
- - '& $env:NUGET_PATH pack MapoSDK\MapoSDK.csproj -properties Configuration=$env:APP_CONF -Version $env:NEW_REL'
+ - '& $env:NUGET_PATH pack MapoSDK.Release.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'
- # - *sendSDK
-
+
+SDK-unstable:
+ stage: sdk
+ tags:
+ - win
+ rules:
+ - if: '$CI_COMMIT_BRANCH == "develop"'
+ variables:
+ APP_NAME: MP-ADM
+ NEXUS_PATH: MP-ADM
+ before_script:
+ - *nuget-fix
+ - '& "$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'
+ - '& 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'
+
ADM:build:
stage: build
variables:
diff --git a/MP-IO/MP-IO.csproj.user b/MP-IO/MP-IO.csproj.user
index e85dec40..391097c4 100644
--- a/MP-IO/MP-IO.csproj.user
+++ b/MP-IO/MP-IO.csproj.user
@@ -10,7 +10,7 @@
- Debug|Any CPU
+ Release|Any CPU
MvcControllerEmptyScaffolder
root/Common/MVC/Controller
600
diff --git a/MP-Site/MP-Site.csproj.user b/MP-Site/MP-Site.csproj.user
index c2cb7f33..3679bec0 100644
--- a/MP-Site/MP-Site.csproj.user
+++ b/MP-Site/MP-Site.csproj.user
@@ -8,7 +8,7 @@
- Debug|Any CPU
+ Release|Any CPU
ShowAllFiles
IIS02
diff --git a/MapoSDK.Debug.nuspec b/MapoSDK.Debug.nuspec
new file mode 100644
index 00000000..1adcb020
--- /dev/null
+++ b/MapoSDK.Debug.nuspec
@@ -0,0 +1,18 @@
+
+
+
+ MapoSDK
+ #version#
+ MapoSDK
+ Samuele E. Locatelli
+ false
+ MIT
+ SDK for MAPO solutions - beta/unstable
+ #releaseNotes#
+ #copyright#
+ MAPO;SDK;IOB
+
+
+
+
+
\ No newline at end of file
diff --git a/MapoSDK.Release.nuspec b/MapoSDK.Release.nuspec
new file mode 100644
index 00000000..1f896c8e
--- /dev/null
+++ b/MapoSDK.Release.nuspec
@@ -0,0 +1,18 @@
+
+
+
+ MapoSDK
+ #version#
+ MapoSDK
+ Samuele E. Locatelli
+ false
+ MIT
+ SDK for MAPO solutions
+ #releaseNotes#
+ #copyright#
+ MAPO;SDK;IOB
+
+
+
+
+
\ No newline at end of file