Skip to contents

(INTERNAL) Build and deploy the site with continous integration

Usage

ci_build_site(
  path = ".",
  branch = "gh-pages",
  md = "md-outputs",
  remote = "origin",
  reset = FALSE
)

Arguments

path

path to the lesson

branch

the branch name that contains the full HTML site

md

the branch name that contains the markdown outputs

remote

the name of the git remote to which you should deploy.

reset

if TRUE, the contents of the branch/folder will be cleared before inserting new items

Value

NOTHING

Note

this function is not for interactive use. It requires git to be installed on your machine and will destroy anything you have in the site/ folder. Additionally, this will set the sandpaper.use_renv option to TRUE, which means that it will always use the renv package cache.