Skip to content

Commit f3760c8

Browse files
authored
update build script logging and nuget publish conditions
1 parent 50016c0 commit f3760c8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Build.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,9 @@ if ($env:NUGET_API_KEY `
7878
if($LASTEXITCODE -ne 0) { throw "Publishing failed" }
7979
}
8080
} else {
81-
Write-Output "build: Skipping Nuget publish"
81+
if ($null -eq $env:NUGET_API_KEY) {
82+
Write-Output "build: Skipping Nuget publish, API key null"
83+
} else {
84+
Write-Output "build: Skipping Nuget publish reftype: $env:GITHUB_REF_TYPE
85+
}
8286
}

0 commit comments

Comments
 (0)