Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
d3e5fadf
Unverified
Commit
d3e5fadf
authored
Feb 16, 2021
by
Matti Picus
Committed by
GitHub
Feb 16, 2021
Browse files
add CI qualifier to push docs for new tags (#3373)
Co-authored-by:
Francisco Massa
<
fvsmassa@gmail.com
>
parent
5c2a448a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
.circleci/config.yml
.circleci/config.yml
+2
-0
.circleci/regenerate.py
.circleci/regenerate.py
+9
-3
No files found.
.circleci/config.yml
View file @
d3e5fadf
...
@@ -1325,6 +1325,8 @@ workflows:
...
@@ -1325,6 +1325,8 @@ workflows:
branches
:
branches
:
only
:
only
:
-
nightly
-
nightly
tags
:
only
:
/v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name
:
upload_docs
name
:
upload_docs
python_version
:
'
3.7'
python_version
:
'
3.7'
requires
:
requires
:
...
...
.circleci/regenerate.py
View file @
d3e5fadf
...
@@ -22,6 +22,8 @@ import os.path
...
@@ -22,6 +22,8 @@ import os.path
PYTHON_VERSIONS
=
[
"3.6"
,
"3.7"
,
"3.8"
,
"3.9"
]
PYTHON_VERSIONS
=
[
"3.6"
,
"3.7"
,
"3.8"
,
"3.9"
]
CUDA_VERSION
=
[
"10.1"
,
"10.2"
,
"11.2"
]
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
):
def
build_workflows
(
prefix
=
''
,
filter_branch
=
None
,
upload
=
False
,
indentation
=
6
,
windows_latest_only
=
False
):
w
=
[]
w
=
[]
...
@@ -91,7 +93,8 @@ def upload_doc_job(filter_branch):
...
@@ -91,7 +93,8 @@ def upload_doc_job(filter_branch):
}
}
if
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
}]
return
[{
"upload_docs"
:
job
}]
...
@@ -151,8 +154,11 @@ def generate_base_workflow(base_workflow_name, python_version, cu_version,
...
@@ -151,8 +154,11 @@ def generate_base_workflow(base_workflow_name, python_version, cu_version,
return
{
w
:
d
}
return
{
w
:
d
}
def
gen_filter_branch_tree
(
*
branches
):
def
gen_filter_branch_tree
(
*
branches
,
tags_list
=
None
):
return
{
"branches"
:
{
"only"
:
[
b
for
b
in
branches
]}}
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
):
def
generate_upload_workflow
(
base_workflow_name
,
os_type
,
btype
,
cu_version
,
*
,
filter_branch
=
None
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment