Skip to content

Fix pkgdown template installation in GitHub Actions - #18

Merged
ColinFay merged 2 commits into
masterfrom
copilot/fix-pkgdown-failure-again
Sep 15, 2026
Merged

ColinFay merged 2 commits into
masterfrom
copilot/fix-pkgdown-failure-again

Conversation

Copilot AI commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

The pkgdown workflow was failing because the configured template package was not available via install.packages() for the runner's R version. This change switches the workflow to install the template from its source repository before pkgdown::deploy_to_branch() runs.

  • Root cause

    • pkgdown requires golemversetemplate via _pkgdown.yml.
    • The workflow attempted to install that package from r-universe, but no compatible build was available for the Actions runner, leaving the template missing at deploy time.
  • Workflow change

    • Replace the install.packages() call in .github/workflows/pkgdown.yaml with a direct pak::pak() install from ThinkR-open/golemversetemplate.
    • Keep the rest of the deployment flow unchanged.
  • Result

    • The workflow now resolves the pkgdown template independently of repository binary availability for a specific R version.
- name: Deploy package
  run: |
    Rscript -e 'pak::pak("ThinkR-open/golemversetemplate")'
    git config --local user.name "$GITHUB_ACTOR"
    git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
    Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'

Co-authored-by: ColinFay <17936236+ColinFay@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job pkgdown Fix pkgdown template installation in GitHub Actions Sep 15, 2026
Copilot AI requested a review from ColinFay September 15, 2026 09:50
@ColinFay
ColinFay marked this pull request as ready for review September 15, 2026 09:54
@ColinFay
ColinFay merged commit daa024e into master Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants