From bbbf3711e27c15b3229a18b94257b7b061b0bf67 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 2 Feb 2023 12:42:32 +0100 Subject: [PATCH] cambio output nuget --- .gitlab-ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72d4eb0..986704c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,9 @@ variables: NEW_REL: '' NUM_REL: '0.1.2.3' NUM_DEB: '0.1.2-beta.3' + PACK_VER: '0.1.2' + PACK_SUF_REL: '.3' + PACK_SUF_DEB: '-beta.3' APP_NAME: 'Egw.Core.Razor.Comp' SOL_NAME: 'Egw.Core.Razor.Comp' NUGET_PATH: 'C:\Tools\nuget.exe' @@ -33,6 +36,9 @@ variables: - | $env:NEW_REL = $env:VERS_MAIN+"."+(get-date –format yyMM)+"."+(get-date –format ddHH) $env:NUM_REL = $env:VERS_MAIN+"."+(get-date –format yyMM)+"."+(get-date –format dHH) + $env:PACK_VER = $env:VERS_MAIN+"."+(get-date –format yyMM) + $env:PACK_SUF_REL = "."+(get-date –format dHH) + $env:PACK_SUF_DEB = "-beta."+(get-date –format dHH) $env:NUM_DEB = $env:VERS_MAIN+"."+(get-date –format yyMM)+"-beta."+(get-date –format dHH) $env:NEW_COPYRIGHT = "EgalWare @ 2022-" + (get-date -format yyyy) # display versioni generate @@ -101,7 +107,7 @@ Egw.Core.Razor.Comp:staging: - *nuspec-fix script: - dotnet build $env:APP_NAME/$env:APP_NAME.csproj - - dotnet pack -p:Configuration=Debug -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj + - dotnet pack -p:Configuration=Debug -p:verbosity=quiet -p:PackageVersion=$env:PACK_VER -p:version-suffix=$env:PACK_SUF_DEB $env:APP_NAME/$env:APP_NAME.csproj - '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-hosted' - '& "$env:NUGET_PATH" push $env:APP_NAME/bin/Debug/*.$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' @@ -125,7 +131,7 @@ Egw.Core.Razor.Comp:release: - *nuspec-fix script: - dotnet build $env:APP_NAME/$env:APP_NAME.csproj - - dotnet pack -p:Configuration=Release -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj + - dotnet pack -p:Configuration=Debug -p:verbosity=quiet -p:PackageVersion=$env:PACK_VER -p:version-suffix=$env:PACK_SUF_REL $env:APP_NAME/$env:APP_NAME.csproj - '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-hosted' - '& "$env:NUGET_PATH" push $env:APP_NAME/bin/Release/*.$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' \ No newline at end of file