aggiunto step copia file standard / debug
This commit is contained in:
+13
-9
@@ -3,9 +3,6 @@ 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'
|
||||
@@ -35,10 +32,7 @@ variables:
|
||||
.version-fix: &version-fix
|
||||
- |
|
||||
$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_REL = $env:VERS_MAIN+"."+(get-date –format yyMM)+"."+(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
|
||||
@@ -67,6 +61,15 @@ variables:
|
||||
Set-Content -Path $fileNameRel -Value $nuspDataRelUpd;
|
||||
echo "Modifica dati file progetto x nuspec"
|
||||
|
||||
# helper x rename nuspec file debug/beta
|
||||
.renameDeb: &renameDeb
|
||||
- |
|
||||
echo "Cambio nome nuget di sviluppo"
|
||||
$currRelease = $env:NUM_REL
|
||||
$currDebug = $env:NUM_DEB
|
||||
$fileNameRel = "$env:APP_NAME/bin/Debug/*.nupkg";
|
||||
$fileNameDeb = $fileNameRel -replace $currRelease, $currDebug;
|
||||
Copy-Item $fileNameRel $fileNameDeb
|
||||
|
||||
stages:
|
||||
- build
|
||||
@@ -107,7 +110,8 @@ 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 -p:PackageVersion=$env:PACK_VER -p:version-suffix=$env:PACK_SUF_DEB $env:APP_NAME/$env:APP_NAME.csproj
|
||||
- dotnet pack -p:Configuration=Debug -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj
|
||||
- *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:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted'
|
||||
|
||||
@@ -131,7 +135,7 @@ Egw.Core.Razor.Comp:release:
|
||||
- *nuspec-fix
|
||||
script:
|
||||
- dotnet build $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
|
||||
- dotnet pack -p:Configuration=Debug -p:verbosity=quiet $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'
|
||||
|
||||
Reference in New Issue
Block a user