update deploy scripts

pull/10923/head
Alper Ebicoglu 3 years ago
parent 7842a622bd
commit d99399b15f

@ -34,5 +34,5 @@ git pull origin
echo "`n-----=====[ BUILDING ALL PROJECTS ]=====-----`n"
cd build
.\build-all.ps1
.\build-all.ps1 -f
echo "`n-----=====[ BUILDING ALL PROJECTS COMPLETED]=====-----`n"

@ -8,6 +8,7 @@ $version = $commonPropsXml.Project.PropertyGroup.Version
# Publish all packages
$i = 0
$errorCount = 0
$nugetUrl = "https://api.nuget.org/v3/index.json"
Set-Location $packFolder
@ -24,12 +25,19 @@ foreach($project in $projects) {
{
dotnet nuget push $nugetPackageName --skip-duplicate -s $nugetUrl --api-key "$apiKey"
Write-Host ("Deleting package from local: " + $nugetPackageName)
Remove-Item $nugetPackageName -Force
#Remove-Item $nugetPackageName -Force
}
else
{
Write-Host ("********** ERROR PACKAGE NOT FOUND: " + $nugetPackageName)
Write-Host ("********** ERROR PACKAGE NOT FOUND: " + $nugetPackageName) -ForegroundColor red
$errorCount += 1
#Exit
}
Write-Host "--------------------------------------------------------------`r`n"
}
if ($errorCount > 0)
{
Write-Host ("******* $errorCount error(s) occured *******") -ForegroundColor red
}

Loading…
Cancel
Save