
Create a GitHub Actions workflow that builds a pkgdown site
Source:R/gha_pkgdown_branch.R
gha_pkgdown_branch.RdThe GitHub Actions workflow deploys a pkgdown site for your
package on the gh-pages branch.
Source
Examples from r-lib/actions.
Details
Check https://github.com/actions/runner-images to see the available options.
See also
gha_check_full()creates a full package check action.gha_update_docs()creates a documentation and deployment action.
GitHub Actions helpers:
gha_check_full(),
gha_update_docs()
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/RtmpbE1kC0/file1a0f13696044/.github/.gitignore': No such file or directory
#> Error in file(path, open = file_mode, encoding = "utf-8"): cannot open the connection
# }