Skip to content

Commit 301f2ef

Browse files
authored
Trigger doc build job on stable release tag push - not just on RCs (#1471)
1 parent 0e71f59 commit 301f2ef

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/linux_cuda_wheel.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- release/*
1010
tags:
1111
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
12+
- v[0-9]+.[0-9]+.[0-9]+
1213
workflow_dispatch:
1314

1415
concurrency:

docs/source/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ def __call__(self, filename):
143143
source_suffix = [".rst"]
144144

145145
version = ".".join(torchcodec.__version__.split(".")[:2])
146+
# Strip CUDA suffix (e.g. "0.14.0-cu126" -> "0.14.0") for display
147+
release = torchcodec.__version__.split("-")[0]
146148

147-
html_title = f"TorchCodec {torchcodec.__version__} Documentation"
149+
html_title = f"TorchCodec {release} Documentation"
148150

149151
# The master toctree document.
150152
master_doc = "index"

0 commit comments

Comments
 (0)