
Instala un workflow de GitHub Actions que genera tu sitio en gh-pages
Código: R/ros_actions_pkgdown_branch.R
ros_actions_pkgdown_branch.RdInstala un workflow de GitHub Actions que crea el sitio pkgdown
de tu paquete en la rama gh-pages de tu repositorio.
Ver también
Sitios pkgdown:
ros_actions_pkgdown_docs(),
ros_build()
Ejemplos
pkg <- file.path(tempdir(), "pkgdown-branch")
if (!dir.exists(pkg)) {
dir.create(pkg)
}
ros_actions_pkgdown_branch(pkg)
#> ✔ Adding "^docs$", "^_pkgdown\\.yml$", "^_pkgdown\\.yaml$", "^\\.github$", and
#> "^pkgdown$" to /tmp/RtmpB4x0px/pkgdown-branch/.Rbuildignore.
#> ✔ Adding "*.html", "R-version", and "depends.Rds" to
#> /tmp/RtmpB4x0px/pkgdown-branch/.github/.gitignore.
#> Success!