Skip to content

Commit d02c705

Browse files
committed
buildlib: set a proper name when creating a github release
[ Upstream commit ea39370 ] 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 <[email protected]>
1 parent 1e07ce4 commit d02c705

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

buildlib/azure-pipelines-release.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ stages:
2828

2929
- bash: |
3030
set -e
31+
git_tag=$(git describe --exact-match HEAD)
32+
rel_ver=$(echo $git_tag | sed -e 's/^v//')
33+
echo "Version is $rel_ver"
34+
echo "##vso[task.setvariable variable=rel_ver]$rel_ver"
3135
mkdir build-pandoc artifacts
3236
cd build-pandoc
3337
CC=gcc-12 cmake -GNinja ..
@@ -37,13 +41,14 @@ stages:
3741
python3 buildlib/cbuild make-dist-tar build-pandoc
3842
displayName: Prebuild Documentation
3943
40-
- task: GithubRelease@0
44+
- task: GithubRelease@1
4145
displayName: 'Create GitHub Release'
4246
inputs:
4347
githubConnection: github_release
4448
repositoryName: linux-rdma/rdma-core
4549
assets: ./*.tar.gz
4650
action: create
51+
title: rdma-core-$(rel_ver)
4752
isDraft: true
4853
addChangeLog: true
4954
changeLogCompareToRelease: lastNonDraftReleaseByTag

0 commit comments

Comments
 (0)