Unverified Commit d3e5fadf authored by Matti Picus's avatar Matti Picus Committed by GitHub
Browse files

add CI qualifier to push docs for new tags (#3373)


Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
parent 5c2a448a
......@@ -1325,6 +1325,8 @@ workflows:
branches:
only:
- nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: upload_docs
python_version: '3.7'
requires:
......
......@@ -22,6 +22,8 @@ import os.path
PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9"]
CUDA_VERSION = ["10.1", "10.2", "11.2"]
RC_PATTERN = r"/v[0-9]+(\.[0-9]+)*-rc[0-9]+/"
def build_workflows(prefix='', filter_branch=None, upload=False, indentation=6, windows_latest_only=False):
w = []
......@@ -91,7 +93,8 @@ def upload_doc_job(filter_branch):
}
if filter_branch:
job["filters"] = gen_filter_branch_tree(filter_branch)
job["filters"] = gen_filter_branch_tree(filter_branch,
tags_list=RC_PATTERN)
return [{"upload_docs": job}]
......@@ -151,8 +154,11 @@ def generate_base_workflow(base_workflow_name, python_version, cu_version,
return {w: d}
def gen_filter_branch_tree(*branches):
return {"branches": {"only": [b for b in branches]}}
def gen_filter_branch_tree(*branches, tags_list=None):
filter_dict = {"branches": {"only": [b for b in branches]}}
if tags_list is not None:
filter_dict["tags"] = {"only": tags_list}
return filter_dict
def generate_upload_workflow(base_workflow_name, os_type, btype, cu_version, *, filter_branch=None):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment