Skip to content

Commit 7883868

Browse files
committed
Account for release/xx
1 parent 841b06c commit 7883868

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/doc-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- main
8+
- release
89
tags:
910
- v[0-9]+.[0-9]+.[0-9]+
1011
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+

docs/source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@
8686
version = ".".join(
8787
et_version_docs.split("/")[-1].split("-")[0].lstrip("v").split(".")[:2]
8888
)
89+
elif et_version_docs.startswith("refs/heads/release/"):
90+
version = et_version_docs.split("/")[-1]
8991
print(f"Version: {version}")
9092
html_title = " ".join((project, version, "documentation"))
9193

0 commit comments

Comments
 (0)