Skip to content

Commit f680a28

Browse files
authored
fix GITHUB_REF_TYPE=tag for publish
1 parent 7f4953d commit f680a28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Build.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ foreach ($test in Get-ChildItem test/*.Tests) {
6565
Pop-Location
6666

6767
if ($env:NUGET_API_KEY `
68-
-and (("tag" -eq $env:GITHUB_REF_NAME -and $NULL -ne $prefix) `
68+
-and (($env:GITHUB_REF_TYPE -eq "tag" -and $NULL -ne $prefix) `
6969
-or ($NULL -ne $suffix -and ($env:CI_TARGET_BRANCH -eq "dev" -or $env:CI_TARGET_BRANCH -eq "master")))) {
7070
# GitHub Actions will only supply this to branch builds and not PRs. We publish
7171
# builds from any branch this action targets (i.e. master and dev).
@@ -81,6 +81,6 @@ if ($env:NUGET_API_KEY `
8181
if ($null -eq $env:NUGET_API_KEY) {
8282
Write-Output "build: Skipping Nuget publish, API key null"
8383
} else {
84-
Write-Output "build: Skipping Nuget publish reftype: $env:GITHUB_REF_TYPE"
84+
Write-Output "build: Skipping Nuget publish reftype: $env:GITHUB_REF_TYPE, branch: $env:CI_TARGET_BRANCH"
8585
}
8686
}

0 commit comments

Comments
 (0)