From c5a34dae8c0f9909a86e6e03e65c371de5af28cd Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Sat, 18 May 2019 16:44:06 -0400 Subject: [PATCH] Change release assets --- .ci/azure-build.yml | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.ci/azure-build.yml b/.ci/azure-build.yml index 47e1a59e..3dc53dd2 100644 --- a/.ci/azure-build.yml +++ b/.ci/azure-build.yml @@ -34,26 +34,6 @@ steps: - pwsh: if( (Get-ChildItem $ENV:ARTIFACT_STAGING_DIRECTORY | Measure-Object).Count -eq 0) { echo '##vso[task.setvariable variable=buildSuccess]false' } else { echo '##vso[task.setvariable variable=buildSuccess]true' } env: ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory)) -# delete the release if it already exists to avoid an error -- task: GitHubRelease@0 - condition: eq(variables['buildSuccess'], 'true') - continueOnError: true - inputs: - gitHubConnection: nheko-reborn-pipeline - repositoryName: '$(Build.Repository.Name)' - action: 'delete' # Options: create, edit, delete - target: '$(Build.SourceVersion)' # Required when action == Create || Action == Edit - tagSource: 'manual' # Required when action == Create# Options: auto, manual - tag: $(Build.BuildNumber) # Required when action == Edit || Action == Delete || TagSource == Manual - #title: # Optional - #releaseNotesSource: 'file' # Optional. Options: file, input - #releaseNotesFile: CHANGELOG.md # Optional - #releaseNotes: # Optional - #assets: '$(Build.ArtifactStagingDirectory)/*' # Optional - #assetUploadMode: 'delete' # Optional. Options: delete, replace - #isDraft: false # Optional - #isPreRelease: true # Optional - #addChangeLog: true # Optional - task: GitHubRelease@0 condition: eq(variables['buildSuccess'], 'true') continueOnError: true @@ -68,7 +48,27 @@ steps: releaseNotesSource: 'file' # Optional. Options: file, input releaseNotesFile: CHANGELOG.md # Optional #releaseNotes: # Optional - assets: '$(Build.ArtifactStagingDirectory)/*' # Optional + #assets: '$(Build.ArtifactStagingDirectory)/*' # Optional + assetUploadMode: 'delete' # Optional. Options: delete, replace + #isDraft: false # Optional + isPreRelease: true # Optional + addChangeLog: true # Optional +# If the release already exists, edit it instead. +- task: GitHubRelease@0 + condition: eq(variables['buildSuccess'], 'true') + continueOnError: true + inputs: + gitHubConnection: nheko-reborn-pipeline + repositoryName: '$(Build.Repository.Name)' + action: 'edit' # Options: create, edit, delete + target: '$(Build.SourceVersion)' # Required when action == Create || Action == Edit + tagSource: 'manual' # Required when action == Create# Options: auto, manual + tag: $(Build.BuildNumber) # Required when action == Edit || Action == Delete || TagSource == Manual + #title: # Optional + releaseNotesSource: 'file' # Optional. Options: file, input + releaseNotesFile: CHANGELOG.md # Optional + #releaseNotes: # Optional + #assets: '$(Build.ArtifactStagingDirectory)/*' # Optional assetUploadMode: 'delete' # Optional. Options: delete, replace #isDraft: false # Optional isPreRelease: true # Optional