
Create a GitHub action that builds a pkgdown site
Source:R/gha_pkgdown_branch.R
gha_pkgdown_branch.RdThe GitHub action created would deploy a pkgdown site of your package on the gh-pages branch.
Details
Check https://github.com/actions/runner-images to see the available options.
Examples
# \dontrun{
# With Ubuntu 20.04
gha_pkgdown_branch(platform = "ubuntu", version = "20.04")
#> ✔ Adding "R-version" to .github/.gitignore.
#> Warning: cannot open file '/tmp/RtmpXg8X1K/file1ea942807fdb/.github/.gitignore': No such file or directory
#> Error in file(path, open = file_mode, encoding = "utf-8"): cannot open the connection
# }