Skip to content

Commit 6828838

Browse files
committed
use the tagged version for libfranka
1 parent c78bb77 commit 6828838

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/pylibfranka-docs.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,13 @@ jobs:
5858
# Install Sphinx requirements
5959
pip3 install -r requirements.txt --user
6060
61-
# Get version from pylibfranka
62-
VERSION=$(python3 -c "import pylibfranka; print(pylibfranka.__version__)")
63-
echo "Building documentation for version: $VERSION"
64-
61+
# Get version from git tag (e.g., v0.15.0 -> 0.15.0)
62+
VERSION=$(git describe --tags --abbrev=0 2>/dev/null | sed 's/^v//')
63+
if [ -z "$VERSION" ]; then
64+
# Fallback to pylibfranka version if no tag found
65+
VERSION=$(python3 -c "import pylibfranka; print(pylibfranka.__version__)")
66+
fi
67+
6568
# Build documentation
6669
make clean
6770
make html

0 commit comments

Comments
 (0)