Make GitHub release only happen on successful build

This commit is contained in:
Joseph Donofry 2019-05-18 00:03:46 -04:00
parent 26b180e07a
commit 17004f014e
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB

View file

@ -12,6 +12,7 @@ steps:
./.ci/script.sh ./.ci/script.sh
sed -i -e "s/VERSION_NAME_VALUE/${VERSION}/g" ./.ci/bintray-release.json || true sed -i -e "s/VERSION_NAME_VALUE/${VERSION}/g" ./.ci/bintray-release.json || true
cp ./.ci/bintray-release.json . cp ./.ci/bintray-release.json .
failOnStderr: 'true'
- task: CopyFiles@2 - task: CopyFiles@2
inputs: inputs:
#sourceFolder: # Optional #sourceFolder: # Optional
@ -23,6 +24,7 @@ steps:
#overWrite: false # Optional #overWrite: false # Optional
#flattenFolders: false # Optional #flattenFolders: false # Optional
- task: GitHubRelease@0 - task: GitHubRelease@0
condition: succeeded()
inputs: inputs:
gitHubConnection: nheko-reborn-pipeline gitHubConnection: nheko-reborn-pipeline
repositoryName: '$(Build.Repository.Name)' repositoryName: '$(Build.Repository.Name)'