mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 13:08:48 +03:00
Update release conditions
This commit is contained in:
parent
9a1f2f8373
commit
e0095536b7
1 changed files with 3 additions and 1 deletions
|
@ -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)'
|
||||
|
|
Loading…
Reference in a new issue