From e0095536b78e9338f0f3fea0adf3549908c959d0 Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Sat, 18 May 2019 00:53:25 -0400 Subject: [PATCH] Update release conditions --- .ci/azure-build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.ci/azure-build.yml b/.ci/azure-build.yml index 3745e463..b7ca2802 100644 --- a/.ci/azure-build.yml +++ b/.ci/azure-build.yml @@ -23,8 +23,10 @@ steps: #cleanTargetFolder: false # Optional #overWrite: false # Optional #flattenFolders: false # Optional + # Create a variable for build success +- pwsh: if( (Get-ChildItem $(Build.ArtifactStagingDirectory) | Measure-Object).Count -eq 0) { echo '##vso[task.setvariable variable=buildSuccess]false' } else { echo '##vso[task.setvariable variable=buildSuccess]true' } - task: GitHubRelease@0 - condition: succeeded() + condition: and(succeeded(), eq( $(buildSuccess), 'true' ) ) inputs: gitHubConnection: nheko-reborn-pipeline repositoryName: '$(Build.Repository.Name)'