|
|
@ -34,33 +34,33 @@ 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' } |
|
|
|
- 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: |
|
|
|
env: |
|
|
|
ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory)) |
|
|
|
ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory)) |
|
|
|
# delete the release if it already exists to avoid an error |
|
|
|
|
|
|
|
- task: GitHubRelease@0 |
|
|
|
- task: GitHubRelease@0 |
|
|
|
condition: eq(variables['buildSuccess'], 'true') |
|
|
|
condition: eq(variables['buildSuccess'], 'true') |
|
|
|
continueOnError: true |
|
|
|
continueOnError: true |
|
|
|
inputs: |
|
|
|
inputs: |
|
|
|
gitHubConnection: nheko-reborn-pipeline |
|
|
|
gitHubConnection: nheko-reborn-pipeline |
|
|
|
repositoryName: '$(Build.Repository.Name)' |
|
|
|
repositoryName: '$(Build.Repository.Name)' |
|
|
|
action: 'delete' # Options: create, edit, delete |
|
|
|
action: 'create' # Options: create, edit, delete |
|
|
|
target: '$(Build.SourceVersion)' # Required when action == Create || Action == Edit |
|
|
|
target: '$(Build.SourceVersion)' # Required when action == Create || Action == Edit |
|
|
|
tagSource: 'manual' # Required when action == Create# Options: auto, manual |
|
|
|
tagSource: 'manual' # Required when action == Create# Options: auto, manual |
|
|
|
tag: $(Build.BuildNumber) # Required when action == Edit || Action == Delete || TagSource == Manual |
|
|
|
tag: $(Build.BuildNumber) # Required when action == Edit || Action == Delete || TagSource == Manual |
|
|
|
#title: # Optional |
|
|
|
#title: # Optional |
|
|
|
#releaseNotesSource: 'file' # Optional. Options: file, input |
|
|
|
releaseNotesSource: 'file' # Optional. Options: file, input |
|
|
|
#releaseNotesFile: CHANGELOG.md # Optional |
|
|
|
releaseNotesFile: CHANGELOG.md # Optional |
|
|
|
#releaseNotes: # Optional |
|
|
|
#releaseNotes: # Optional |
|
|
|
#assets: '$(Build.ArtifactStagingDirectory)/*' # Optional |
|
|
|
#assets: '$(Build.ArtifactStagingDirectory)/*' # Optional |
|
|
|
#assetUploadMode: 'delete' # Optional. Options: delete, replace |
|
|
|
assetUploadMode: 'delete' # Optional. Options: delete, replace |
|
|
|
#isDraft: false # Optional |
|
|
|
#isDraft: false # Optional |
|
|
|
#isPreRelease: true # Optional |
|
|
|
isPreRelease: true # Optional |
|
|
|
#addChangeLog: true # Optional |
|
|
|
addChangeLog: true # Optional |
|
|
|
|
|
|
|
# If the release already exists, edit it instead. |
|
|
|
- task: GitHubRelease@0 |
|
|
|
- task: GitHubRelease@0 |
|
|
|
condition: eq(variables['buildSuccess'], 'true') |
|
|
|
condition: eq(variables['buildSuccess'], 'true') |
|
|
|
continueOnError: true |
|
|
|
continueOnError: true |
|
|
|
inputs: |
|
|
|
inputs: |
|
|
|
gitHubConnection: nheko-reborn-pipeline |
|
|
|
gitHubConnection: nheko-reborn-pipeline |
|
|
|
repositoryName: '$(Build.Repository.Name)' |
|
|
|
repositoryName: '$(Build.Repository.Name)' |
|
|
|
action: 'create' # Options: create, edit, delete |
|
|
|
action: 'edit' # Options: create, edit, delete |
|
|
|
target: '$(Build.SourceVersion)' # Required when action == Create || Action == Edit |
|
|
|
target: '$(Build.SourceVersion)' # Required when action == Create || Action == Edit |
|
|
|
tagSource: 'manual' # Required when action == Create# Options: auto, manual |
|
|
|
tagSource: 'manual' # Required when action == Create# Options: auto, manual |
|
|
|
tag: $(Build.BuildNumber) # Required when action == Edit || Action == Delete || TagSource == Manual |
|
|
|
tag: $(Build.BuildNumber) # Required when action == Edit || Action == Delete || TagSource == Manual |
|
|
@ -68,7 +68,7 @@ steps: |
|
|
|
releaseNotesSource: 'file' # Optional. Options: file, input |
|
|
|
releaseNotesSource: 'file' # Optional. Options: file, input |
|
|
|
releaseNotesFile: CHANGELOG.md # Optional |
|
|
|
releaseNotesFile: CHANGELOG.md # Optional |
|
|
|
#releaseNotes: # Optional |
|
|
|
#releaseNotes: # Optional |
|
|
|
assets: '$(Build.ArtifactStagingDirectory)/*' # Optional |
|
|
|
#assets: '$(Build.ArtifactStagingDirectory)/*' # Optional |
|
|
|
assetUploadMode: 'delete' # Optional. Options: delete, replace |
|
|
|
assetUploadMode: 'delete' # Optional. Options: delete, replace |
|
|
|
#isDraft: false # Optional |
|
|
|
#isDraft: false # Optional |
|
|
|
isPreRelease: true # Optional |
|
|
|
isPreRelease: true # Optional |
|
|
|