We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dfe605 commit 698b50dCopy full SHA for 698b50d
buildutils.ps1
@@ -361,8 +361,14 @@ function Initialize-BuildEnvironment
361
$global:IsReleaseBuild = [System.Convert]::ToBoolean($env:IsReleaseBuild)
362
if(!$global:IsReleaseBuild -and $global:IsAutomatedBuild -and !$global:IsPullRequestBuild)
363
{
364
- # TODO: Determine how to detect release tag builds with GITHUB ACTIONS
365
- $global:IsReleaseBuild = $env:APPVEYOR_REPO_TAG
+ if($env:APPVEYOR)
+ {
366
+ $global:IsReleaseBuild = $env:APPVEYOR_REPO_TAG
367
+ }
368
+ else
369
370
+ $global:IsReleaseBuild = $env:GITHUB_REF -like 'refs/tags/*'
371
372
}
373
374
# set/reset environment vars for non-script tools (i.e. msbuild.exe)
0 commit comments