Skip to content

Commit

Permalink
align with nvctr
Browse files Browse the repository at this point in the history
  • Loading branch information
espinielli committed Apr 27, 2020
1 parent 9b0fc0d commit 9373392
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions tic.R
@@ -1,4 +1,4 @@
do_package_checks()
add_package_checks()

if (Sys.getenv("BUILD_PKGDOWN") != "" && Sys.getenv("id_rsa") != "") {
# pkgdown documentation can be built optionally. Other example criteria:
Expand All @@ -8,17 +8,7 @@ if (Sys.getenv("BUILD_PKGDOWN") != "" && Sys.getenv("id_rsa") != "") {
get_stage("before_deploy") %>%
add_step(step_setup_ssh())

if (ci_get_branch() == "master") {
get_stage("install") %>%
# install the latest release "@&release" magic from https://stackoverflow.com/a/40179557/963575
add_step(step_install_github("r-lib/pkgdown@*release"))

get_stage("deploy") %>%
add_step(step_build_pkgdown()) %>%
add_step(step_push_deploy(path = "docs", branch = "gh-pages"))
}

# run lintr after successful CI build
get_stage("after_success") %>%
add_code_step(lintr::lint_package())
get_stage("deploy") %>%
add_step(step_build_pkgdown()) %>%
add_step(step_push_deploy(path = "docs", branch = "gh-pages"))
}

0 comments on commit 9373392

Please sign in to comment.