I'm trying to run Deploy my {pkgdown}
page using GitHub Actions using the command:
- name: Deploy pkgdown site
run: pkgdown::deploy_to_branch(new_process = FALSE)
shell: Rscript {0}
The process is hitting a fatal error with output:
fatal: unable to auto-detect email address (got 'runner@Mac-1595378328350.(none)')
Does anyone know whether this is an issue with {pkgdown}
, git
or GitHub Actions
?
Does anybody know the solution?
Yes this is an issue with GitHub actions. Here is a GitHub issue thread, with a workaround:
Manually set up Git Credentials
Scroll up that thread from the linked post for examples of the same error, and down for some further discussion.
@kjhealy
Thanks. The workaround was perfect. For anyone who doesn't wanna click the link:
- name: Install package
run: R CMD INSTALL .
- name: Establish git credentials
run: |
install.packages("usethis")
usethis::use_git_config(user.name = "<insert username>", user.email = "<insert email>")
shell: Rscript {0}
- name: Deploy package
run: pkgdown::deploy_to_branch(new_process = FALSE)
shell: Rscript {0}
system
Closed
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.