Make GitHub release only happen on successful build

azure-pipelines
Joseph Donofry 6 years ago
parent 26b180e07a
commit 17004f014e
No known key found for this signature in database
GPG Key ID: E8A1D78EF044B0CB
  1. 2
      .ci/azure-build.yml

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

Loading…
Cancel
Save