Skip to content

Commit 33b2469

Browse files
mattipmthrok
authored andcommitted
Fix doc build on tag (#1577)
1 parent bc65767 commit 33b2469

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

.circleci/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,12 @@ workflows:
644644
- download_third_parties_nix
645645
- binary_linux_wheel:
646646
cuda_version: cpu
647+
filters:
648+
branches:
649+
only:
650+
- /.*/
651+
tags:
652+
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
647653
name: binary_linux_wheel_py3.8_cpu
648654
python_version: '3.8'
649655
requires:
@@ -771,6 +777,12 @@ workflows:
771777
name: binary_windows_conda_py3.9_cpu
772778
python_version: '3.9'
773779
- build_docs:
780+
filters:
781+
branches:
782+
only:
783+
- /.*/
784+
tags:
785+
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
774786
name: build_docs
775787
python_version: '3.8'
776788
requires:

.circleci/regenerate.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,20 @@ def build_workflows(prefix='', upload=False, filter_branch=None, indentation=6):
3636
for os_type in ["linux", "macos", "windows"]:
3737
for python_version in PYTHON_VERSIONS:
3838
for cu_version in CU_VERSIONS_DICT[os_type]:
39+
fb = filter_branch
3940
if cu_version.startswith("rocm") and btype=="conda":
40-
pass
41-
else:
42-
w += build_workflow_pair(btype, os_type, python_version, cu_version, filter_branch, prefix, upload)
41+
continue
42+
if not fb and (os_type == 'linux' and
43+
btype == 'wheel' and
44+
python_version == '3.8' and
45+
cu_version == 'cpu'):
46+
# the fields must match the build_docs "requires" dependency
47+
fb = '/.*/'
48+
w += build_workflow_pair(btype, os_type, python_version, cu_version, fb, prefix, upload)
4349

4450
if not filter_branch:
4551
# Build on every pull request, but upload only on nightly and tags
46-
w += build_doc_job(None)
52+
w += build_doc_job('/.*/')
4753
w += upload_doc_job('nightly')
4854
w += docstring_parameters_sync_job(None)
4955

0 commit comments

Comments
 (0)