From ea39370524b305bd89ad9505d2eb0d25b0bbc9e0 Mon Sep 17 00:00:00 2001 From: Nicolas Morey Date: Tue, 19 Nov 2024 08:42:31 +0100 Subject: [PATCH] buildlib: set a proper name when creating a github release By default, AZP creates a release on Github without any name. This patch set a release name with the format rdma-core-XX.YY Signed-off-by: Nicolas Morey --- buildlib/azure-pipelines-release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buildlib/azure-pipelines-release.yml b/buildlib/azure-pipelines-release.yml index 75c41302f..623c86ddd 100644 --- a/buildlib/azure-pipelines-release.yml +++ b/buildlib/azure-pipelines-release.yml @@ -28,6 +28,10 @@ stages: - bash: | set -e + git_tag=$(git describe --exact-match HEAD) + rel_ver=$(echo $git_tag | sed -e 's/^v//') + echo "Version is $rel_ver" + echo "##vso[task.setvariable variable=rel_ver]$rel_ver" mkdir build-pandoc artifacts cd build-pandoc CC=gcc-12 cmake -GNinja .. @@ -37,12 +41,13 @@ stages: python3 buildlib/cbuild make-dist-tar build-pandoc displayName: Prebuild Documentation - - task: GithubRelease@0 + - task: GithubRelease@1 displayName: 'Create GitHub Release' inputs: githubConnection: github_release repositoryName: linux-rdma/rdma-core assets: ./*.tar.gz action: create + title: rdma-core-$(rel_ver) isDraft: true addChangeLog: true