We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c78bb77 commit 6828838Copy full SHA for 6828838
.github/workflows/pylibfranka-docs.yml
@@ -58,10 +58,13 @@ jobs:
58
# Install Sphinx requirements
59
pip3 install -r requirements.txt --user
60
61
- # Get version from pylibfranka
62
- VERSION=$(python3 -c "import pylibfranka; print(pylibfranka.__version__)")
63
- echo "Building documentation for version: $VERSION"
64
-
+ # Get version from git tag (e.g., v0.15.0 -> 0.15.0)
+ VERSION=$(git describe --tags --abbrev=0 2>/dev/null | sed 's/^v//')
+ if [ -z "$VERSION" ]; then
+ # Fallback to pylibfranka version if no tag found
65
+ VERSION=$(python3 -c "import pylibfranka; print(pylibfranka.__version__)")
66
+ fi
67
+
68
# Build documentation
69
make clean
70
make html
0 commit comments