Skip to content

Commit

Permalink
Added AspNet nuget package to build and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
abergs committed Mar 24, 2020
1 parent d0c49cd commit 87cdd6f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Scripts/run-all.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,27 @@ if ($? -eq $false) {

$target1 = Join-Path $root "Src\Fido2\bin\Release\Fido2.$VersionPrefix$VersionSuffixPath.nupkg"
$target2 = Join-Path $root "Src\Fido2.Models\bin\Release\Fido2.Models.$VersionPrefix$VersionSuffixPath.nupkg"
$target3 = Join-Path $root "Src\Fido2.AspNet\bin\Release\Fido2.AspNet.$VersionPrefix$VersionSuffixPath.nupkg"

if (
((Test-Path $target1) -eq $false) -Or ((Test-Path $target2) -eq $false)) {
((Test-Path $target1) -eq $false) -Or ((Test-Path $target2) -eq $false) -Or ((Test-Path $target3) -eq $false)) {
write-host -background DarkBlue -foreground Red "Could not locate nupkg"
Write-Host "Path1 $target1"
Write-Host "Path2 $target2"
Write-Host "Path2 $target3"

exit 1
}

Write-Host "Ready to publish $target1"
Write-Host "Ready to publish $target2"
Write-Host "Ready to publish $target3"
Write-Host -background yellow -foreground black "Version: $VersionPrefix$VersionSuffixPath"

$confirmation = Read-Host "Are you Sure You Want To Proceed (y)"
if ($confirmation -ne 'y') {exit}
& (join-path $scriptDir "publish.ps1") -path $target2
& (join-path $scriptDir "publish.ps1") -path $target1

& (join-path $scriptDir "publish.ps1") -path $target3

Write-Host "Done. Update to $VersionPrefix $VersionSuffix and published to nuget."

0 comments on commit 87cdd6f

Please sign in to comment.