Update release conditions

This commit is contained in:
Joseph Donofry 2019-05-18 00:53:25 -04:00
parent 9a1f2f8373
commit e0095536b7
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB

View file

@ -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)'