Skip to content

Commit

Permalink
update build script logging and nuget publish conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
EEParker authored Apr 3, 2024
1 parent 50016c0 commit f3760c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,9 @@ if ($env:NUGET_API_KEY `
if($LASTEXITCODE -ne 0) { throw "Publishing failed" }
}
} else {
Write-Output "build: Skipping Nuget publish"
if ($null -eq $env:NUGET_API_KEY) {
Write-Output "build: Skipping Nuget publish, API key null"
} else {
Write-Output "build: Skipping Nuget publish reftype: $env:GITHUB_REF_TYPE
}
}

0 comments on commit f3760c8

Please sign in to comment.