From d7437c970270e0cdc62e07d406825a5bbeb03f36 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 28 Sep 2021 08:02:02 +0200 Subject: [PATCH] update step SDK --- .gitlab-ci.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d89ca442..e9a19f19 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -83,7 +83,7 @@ variables: .sendSDK: &sendSDK - | Remove-Item *.nupkg - echo "C:\Tools\nuget.exe pack MapoSDK\MapoSDK.csproj -properties Configuration=$env:APP_CONF -Version $env:NEW_REL"" + echo "C:\Tools\nuget.exe pack MapoSDK\MapoSDK.csproj -properties Configuration=$env:APP_CONF -Version $env:NEW_REL" C:\Tools\nuget.exe pack MapoSDK\MapoSDK.csproj -properties Configuration=$env:APP_CONF -Version $env:NEW_REL" echo "Start upload with nuget push" echo "C:\Tools\nuget.exe setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source https://nexus.steamware.net/repository/nuget-hosted" @@ -126,7 +126,16 @@ SDK: - *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' - - *sendSDK + - | + Remove-Item *.nupkg + echo "& $env:NUGET_PATH pack MapoSDK\MapoSDK.csproj -properties Configuration=$env:APP_CONF -Version $env:NEW_REL" + & "$env:NUGET_PATH pack MapoSDK\MapoSDK.csproj -properties Configuration=$env:APP_CONF -Version $env:NEW_REL" + echo "Start upload with nuget push" + echo "& $env:NUGET_PATH setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source https://nexus.steamware.net/repository/nuget-hosted" + & $env:NUGET_PATH setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source https://nexus.steamware.net/repository/nuget-hosted + echo "& $env:NUGET_PATH push MapoSDK.$env:NEW_REL.nupkg -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 ADM:build: stage: build @@ -134,6 +143,8 @@ ADM:build: CURR_PRJ: "MP-ADM" tags: - win + rules: + - if: '$CI_COMMIT_BRANCH != "SDK"' before_script: - *nuget-fix - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' @@ -147,6 +158,8 @@ IO:build: CURR_PRJ: "MP-IO" tags: - win + rules: + - if: '$CI_COMMIT_BRANCH != "SDK"' before_script: - *nuget-fix - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' @@ -161,6 +174,8 @@ SITE:build: CURR_PRJ: "MP-SITE" tags: - win + rules: + - if: '$CI_COMMIT_BRANCH != "SDK"' before_script: - *nuget-fix - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' @@ -174,6 +189,8 @@ MON:build: CURR_PRJ: "MP-MON" tags: - win + rules: + - if: '$CI_COMMIT_BRANCH != "SDK"' before_script: - *nuget-fix - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' @@ -187,6 +204,8 @@ TAB:build: CURR_PRJ: "MP-TAB" tags: - win + rules: + - if: '$CI_COMMIT_BRANCH != "SDK"' before_script: - *nuget-fix - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' @@ -200,6 +219,8 @@ MAG:build: CURR_PRJ: "MP-MAG" tags: - win + rules: + - if: '$CI_COMMIT_BRANCH != "SDK"' before_script: - *nuget-fix - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet'