Skip to content

Commit

Permalink
fix GITHUB_REF_TYPE=tag for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
EEParker authored Apr 3, 2024
1 parent 7f4953d commit f680a28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ foreach ($test in Get-ChildItem test/*.Tests) {
Pop-Location

if ($env:NUGET_API_KEY `
-and (("tag" -eq $env:GITHUB_REF_NAME -and $NULL -ne $prefix) `
-and (($env:GITHUB_REF_TYPE -eq "tag" -and $NULL -ne $prefix) `
-or ($NULL -ne $suffix -and ($env:CI_TARGET_BRANCH -eq "dev" -or $env:CI_TARGET_BRANCH -eq "master")))) {
# GitHub Actions will only supply this to branch builds and not PRs. We publish
# builds from any branch this action targets (i.e. master and dev).
Expand All @@ -81,6 +81,6 @@ if ($env:NUGET_API_KEY `
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"
Write-Output "build: Skipping Nuget publish reftype: $env:GITHUB_REF_TYPE, branch: $env:CI_TARGET_BRANCH"
}
}

0 comments on commit f680a28

Please sign in to comment.