Skip to content

Commit 1a2f26f

Browse files
committed
only deploy when BUILD_PKGDOWN=true is set
1 parent ab19cfb commit 1a2f26f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@
2222
^revdep$
2323
^clang-.*
2424
^\.vscode$
25+
^gfortran.*

tic.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ get_stage("install") %>%
55
add_step(step_install_cran("ranger")) %>%
66
add_step(step_install_github("mlr-org/mlr3pkgdowntemplate"))
77

8-
do_pkgdown()
8+
if (ci_on_ghactions() && ci_has_env("BUILD_PKGDOWN")) {
9+
# creates pkgdown site and pushes to gh-pages branch
10+
# only for the runner with the "BUILD_PKGDOWN" env var set
11+
do_pkgdown()
12+
}
913

1014
if (Sys.info()["sysname"] == "Linux") {
1115
do_readme_rmd()

0 commit comments

Comments
 (0)