From aac4ce8b898b04f95403c35a9f61db502ccd3873 Mon Sep 17 00:00:00 2001 From: brindosch Date: Sun, 16 Feb 2020 21:38:36 +0100 Subject: [PATCH] chore: Add Azure Github release title (#686) * Add a release title * Corrected SemVer variable Co-authored-by: Paulchen Panther <16664240+Paulchen-Panther@users.noreply.github.com> --- .azure.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.azure.yml b/.azure.yml index 024397fb..d7a1294c 100644 --- a/.azure.yml +++ b/.azure.yml @@ -36,7 +36,9 @@ jobs: submodules: recursive # set to 'recursive' to get submodules of submodules # read version file - - bash: echo "##vso[task.setvariable variable=semVer]$(grep -oE 'alpha|beta' version)" + - bash: | + echo "##vso[task.setvariable variable=semVer]$(cat version)" + echo "##vso[task.setvariable variable=preRel]$(grep -oE 'alpha|beta' version)" workingDirectory: '$(Build.SourcesDirectory)' displayName: 'Read and generate pipeline variables' @@ -64,7 +66,7 @@ jobs: # set release to pre-release - bash: echo '##vso[task.setvariable variable=preRelease;]true' - condition: and(succeeded(), or(contains(variables['semVer'], 'alpha'), contains(variables['semVer'], 'beta')), ne(variables['system.pullrequest.isfork'], true), startsWith(variables['Build.SourceBranch'], 'refs/tags/')) + condition: and(succeeded(), or(contains(variables['preRel'], 'alpha'), contains(variables['preRel'], 'beta')), ne(variables['system.pullrequest.isfork'], true), startsWith(variables['Build.SourceBranch'], 'refs/tags/')) displayName: 'Mark alpha or beta as pre-release' # create or update github release @@ -76,6 +78,7 @@ jobs: target: $(Build.SourceVersion) tagSource: manual tag: $(Build.SourceBranchName) + title: 'Hyperion $(semVer)' assets: '$(Build.ArtifactStagingDirectory)/*' assetUploadMode: 'replace' addChangeLog: false @@ -97,7 +100,9 @@ jobs: submodules: recursive # set to 'recursive' to get submodules of submodules # read version file - - bash: echo "##vso[task.setvariable variable=semVer]$(grep -oE 'alpha|beta' version)" + - bash: | + echo "##vso[task.setvariable variable=semVer]$(cat version)" + echo "##vso[task.setvariable variable=preRel]$(grep -oE 'alpha|beta' version)" workingDirectory: '$(Build.SourcesDirectory)' displayName: 'Read and generate pipeline variables' @@ -127,7 +132,7 @@ jobs: # set release to pre-release - bash: echo '##vso[task.setvariable variable=preRelease;]true' - condition: and(succeeded(), or(contains(variables['semVer'], 'alpha'), contains(variables['semVer'], 'beta')), ne(variables['system.pullrequest.isfork'], true), startsWith(variables['Build.SourceBranch'], 'refs/tags/')) + condition: and(succeeded(), or(contains(variables['preRel'], 'alpha'), contains(variables['preRel'], 'beta')), ne(variables['system.pullrequest.isfork'], true), startsWith(variables['Build.SourceBranch'], 'refs/tags/')) displayName: 'Mark alpha or beta as pre-release' # create or update github release @@ -139,6 +144,7 @@ jobs: target: $(Build.SourceVersion) tagSource: manual tag: '$(Build.SourceBranchName)' + title: 'Hyperion $(semVer)' assets: '$(Build.ArtifactStagingDirectory)/*' assetUploadMode: 'replace' addChangeLog: false