/
azure-pipelines-release.yml
50 lines (44 loc) · 1.37 KB
/
azure-pipelines-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# See https://aka.ms/yaml
# This pipeline runs to produce GitHub releases when tags are pushed. The
# pipeline is never run from a PR and has access to all the build secrets,
# including write permission to GitHub.
trigger:
tags:
include:
- v*
resources:
containers:
- container: azp
image: ucfconsort.azurecr.io/rdma-core/azure_pipelines:44.0
endpoint: ucfconsort_registry
stages:
- stage: Release
jobs:
- job: SrcPrep
displayName: Build Source Tar
pool:
vmImage: 'ubuntu-latest'
container: azp
steps:
- checkout: self
fetchDepth: 1
- bash: |
set -e
mkdir build-pandoc artifacts
cd build-pandoc
CC=gcc-12 cmake -GNinja ..
ninja docs
cd ..
python3 buildlib/cbuild make-dist-tar build-pandoc
displayName: Prebuild Documentation
- task: GithubRelease@0
displayName: 'Create GitHub Release'
inputs:
githubConnection: github_release
repositoryName: linux-rdma/rdma-core
assets: ./*.tar.gz
action: create
isDraft: true
addChangeLog: true
changeLogCompareToRelease: lastNonDraftReleaseByTag
changeLogCompareToReleaseTag: v48.*