Skip to content

Commit 982d3d0

Browse files
committed
Try this
1 parent 25b3016 commit 982d3d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/build-site.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ build_ropensci_docs <- function(path = ".", destination = NULL, install = FALSE,
6868
navbar = list(type = NULL, bg = NULL),
6969
development = list(mode = 'release'),
7070
url = deploy_url,
71+
repo = list(branch = "HEAD"),
7172
destination = destination
7273
)
7374

@@ -97,7 +98,6 @@ build_ropensci_docs <- function(path = ".", destination = NULL, install = FALSE,
9798
}
9899

99100
pkg <- pkgdown::as_pkgdown(path, override = override)
100-
Sys.setenv(GITHUB_HEAD_REF="HEAD")
101101
pkgdown::build_site(pkg = pkg, ..., install = install, preview = FALSE, devel = FALSE)
102102
if (preview) {
103103
servr::httw(pkg$dst_path)

0 commit comments

Comments
 (0)