mirror of https://github.com/abpframework/abp.git
5 changed files with 87 additions and 0 deletions
@ -0,0 +1,20 @@ |
|||
param( |
|||
[string]$branch |
|||
) |
|||
|
|||
if (!$branch) |
|||
{ |
|||
$branch = Read-Host "Enter the branch name" |
|||
} |
|||
|
|||
echo "`n-----=====[ PULLING ABP REPO - BRANCH: $branch ]=====-----`n" |
|||
|
|||
cd .. |
|||
git switch $branch |
|||
git pull origin |
|||
|
|||
echo "`n-----=====[ BUILDING ALL PROJECTS ]=====-----`n" |
|||
cd build |
|||
.\build-all.ps1 |
|||
|
|||
echo "`n-----=====[ BUILDING ALL PROJECTS COMPLETED]=====-----`n" |
|||
@ -0,0 +1,6 @@ |
|||
echo "`n-----=====[ CREATING NUGET PACKAGES ]=====-----`n" |
|||
|
|||
cd ..\nupkg |
|||
powershell -File pack.ps1 |
|||
|
|||
echo "`n-----=====[ CREATING NUGET PACKAGES COMPLETED ]=====-----`n" |
|||
@ -0,0 +1,27 @@ |
|||
param( |
|||
[string]$nugetApiKey |
|||
) |
|||
|
|||
if (!$nugetApiKey) |
|||
{ |
|||
#reading password from file content |
|||
$passwordFileName = "nuget-api-key.txt" |
|||
$pathExists = Test-Path -Path $passwordFileName -PathType Leaf |
|||
if ($pathExists) |
|||
{ |
|||
$nugetApiKey = Get-Content $passwordFileName |
|||
echo "Using NuGet API Key from $passwordFileName ..." |
|||
} |
|||
} |
|||
|
|||
if (!$nugetApiKey) |
|||
{ |
|||
$nugetApiKey = Read-Host "Enter the NuGet API KEY" |
|||
} |
|||
|
|||
echo "`n-----=====[ PUSHING PACKS TO NUGET ]=====-----`n" |
|||
|
|||
cd ..\nupkg |
|||
powershell -File push_packages.ps1 $nugetApiKey |
|||
|
|||
echo "`n-----=====[ PUSHING PACKS TO NUGET COMPLETED ]=====-----`n" |
|||
@ -0,0 +1,33 @@ |
|||
param( |
|||
[string]$npmAuthToken |
|||
) |
|||
|
|||
if (!$npmAuthToken) |
|||
{ |
|||
#reading password from file content |
|||
$passwordFileName = "npm-auth-token.txt" |
|||
$pathExists = Test-Path -Path $passwordFileName -PathType Leaf |
|||
if ($pathExists) |
|||
{ |
|||
$npmAuthToken = Get-Content $passwordFileName |
|||
echo "Using NPM Auth Token from $passwordFileName ..." |
|||
} |
|||
} |
|||
|
|||
if (!$npmAuthToken) |
|||
{ |
|||
$npmAuthToken = Read-Host "Enter the NPM Auth Token" |
|||
} |
|||
|
|||
cd ..\npm |
|||
|
|||
echo "`n-----=====[ SETTING NPM AUTH TOKEN ]=====-----`n" |
|||
npm set //registry.npmjs.org/:_authToken $npmAuthToken |
|||
|
|||
echo "`n-----=====[ PUSHING MVC PACKS TO NPM ]=====-----`n" |
|||
powershell -File publish-mvc.ps1 |
|||
|
|||
echo "`n-----=====[ PUSHING ANGULAR PACKS TO NPM ]=====-----`n" |
|||
powershell -File publish-ng.ps1 |
|||
|
|||
echo "`n-----=====[ PUSHING PACKS TO NPM COMPLETED ]=====-----`n" |
|||
Loading…
Reference in new issue