mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 22:28:49 +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
|
#cleanTargetFolder: false # Optional
|
||||||
#overWrite: false # Optional
|
#overWrite: false # Optional
|
||||||
#flattenFolders: 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
|
- task: GitHubRelease@0
|
||||||
condition: succeeded()
|
condition: and(succeeded(), eq( $(buildSuccess), 'true' ) )
|
||||||
inputs:
|
inputs:
|
||||||
gitHubConnection: nheko-reborn-pipeline
|
gitHubConnection: nheko-reborn-pipeline
|
||||||
repositoryName: '$(Build.Repository.Name)'
|
repositoryName: '$(Build.Repository.Name)'
|
||||||
|
|
Loading…
Reference in a new issue