Skip to content

Commit

Permalink
Match only v* tags when building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
KolinGuo committed Apr 4, 2024
1 parent 02349d1 commit ac89191
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
copyright = f"2021-2024, {author}. All rights reserved."
release = "+git.".join(
re.findall(
"^v(.*)-[0-9]+-g(.*)", os.popen("git describe --abbrev=8 --tags").read().strip()
"^v(.*)-[0-9]+-g(.*)",
os.popen("git describe --abbrev=8 --tags --match v*").read().strip(),
)[0]
) # tag-commithash
version = release
Expand Down

0 comments on commit ac89191

Please sign in to comment.