Skip to content

Commit 0431700

Browse files
committed
use the UMF version from git describe in docs, not the harcoded one
1 parent 30fada6 commit 0431700

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/reusable_docs_build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
echo "$PATH" >> $GITHUB_PATH
3636
python3 -m pip install -r third_party/requirements.txt
3737
38+
- name: Get UMF version
39+
run: |
40+
VERSION=$(git describe --tags --abbrev=0 | grep -oP '\d+\.\d+\.\d+')
41+
echo "UMF_VERSION=$VERSION" >> $GITHUB_ENV
42+
3843
- name: Build the documentation
3944
run: |
4045
cmake -B build \

docs/config/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import os
2+
13
# Configuration file for the Sphinx documentation builder.
24
#
35
# This file only contains a selection of the most common options. For a full
@@ -22,8 +24,8 @@
2224
author = "Intel"
2325

2426
# The full version, including alpha/beta/rc tags
25-
release = "0.11.0"
26-
27+
release = os.getenv("UMF_VERSION", "unknown")
28+
print("UMF version: ", release)
2729

2830
# -- General configuration ---------------------------------------------------
2931

0 commit comments

Comments
 (0)