Skip to content

Commit 303f807

Browse files
committed
make it work on master only
1 parent 24936e1 commit 303f807

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tic.R

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ get_stage("deploy") %>%
2525
list.files("images", full.names = TRUE),
2626
file.copy,
2727
to = "_book/images"
28-
)) %>%
29-
add_code_step(
30-
file.copy("CNAME",
31-
to = "_book/CNAME")
32-
)
33-
28+
))
29+
30+
if (ci()$get_branch() == "master" || ci()$is_tag()) {
31+
get_stage("deploy") %>%
32+
add_code_step(
33+
file.copy("CNAME",
34+
to = "_book/CNAME")
35+
)
36+
}
3437

3538
if (Sys.getenv("id_rsa") != "") {
3639
# pkgdown documentation can be built optionally. Other example criteria:

0 commit comments

Comments
 (0)