Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (22 sloc) 964 Bytes
get_stage("before_install") %>%
add_code_step(update.packages(ask = FALSE))
get_stage("install") %>%
add_code_step(remotes::install_deps(dependencies = TRUE))
get_stage("script") %>%
add_code_step(system('- echo "rmd4sci.njtierney.com" > CNAME'))
get_stage("deploy") %>%
add_code_step(
bookdown::render_book('index.Rmd', 'bookdown::gitbook'),
prepare_call = remotes::install_github("rstudio/bookdown")
)
if (Sys.getenv("id_rsa") != "") {
# pkgdown documentation can be built optionally. Other example criteria:
# - `inherits(ci(), "TravisCI")`: Only for Travis CI
# - `ci()$is_tag()`: Only for tags, not for branches
# - `Sys.getenv("BUILD_PKGDOWN") != ""`: If the env var "BUILD_PKGDOWN" is set
# - `Sys.getenv("TRAVIS_EVENT_TYPE") == "cron"`: Only for Travis cron jobs
get_stage("before_deploy") %>%
add_step(step_setup_ssh())
get_stage("deploy") %>%
add_step(step_push_deploy(path = "_book", branch = "gh-pages"))
}
You can’t perform that action at this time.