provoa cambiare calcolo versione

This commit is contained in:
Samuele Locatelli
2023-02-02 13:04:20 +01:00
parent d24142be54
commit a1da221682
+4 -2
View File
@@ -3,6 +3,7 @@ variables:
NEW_REL: ''
NUM_REL: '0.1.2.3'
NUM_DEB: '0.1.2-beta.3'
NU_TYPE: 'Debug'
APP_NAME: 'Egw.Core.Razor.Comp'
SOL_NAME: 'Egw.Core.Razor.Comp'
NUGET_PATH: 'C:\Tools\nuget.exe'
@@ -44,7 +45,7 @@ variables:
.nuspec-fix: &nuspec-fix
- |
echo "Modifica dati file nuspec Release"
$currRelease = $env:NUM_REL
$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";
@@ -110,7 +111,7 @@ Egw.Core.Razor.Comp:staging:
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
- *renameDeb
# - *renameDeb
- '& "$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:APP_NAME.$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted'
@@ -122,6 +123,7 @@ Egw.Core.Razor.Comp:release:
variables:
APP_NAME: Egw.Core.Razor.Comp
SOL_NAME: Egw.Core.Razor.Comp
NU_TYPE: Release
only:
- main
except: