Skip to content

Split pkgdown build from docs deploy and add PR previews - #110

Draft
MLopez-Ibanez with Copilot wants to merge 2 commits into
masterfrom
ci/split-pkgdown-deploy-and-pr-previews
Draft

MLopez-Ibanez with Copilot wants to merge 2 commits into
masterfrom
ci/split-pkgdown-deploy-and-pr-previews

Conversation

Copilot AI commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • split docs generation from deployment in R-CMD-check.yaml: pkgdown now builds and uploads docs-r with read-only permissions, and deploy-docs performs privileged gh-pages deployment only on push to master/main
  • preserve PR previews during main docs deploy via clean-exclude: previews/***
  • add docs-preview-deploy.yml to deploy PR previews from workflow_run artifacts without checking out PR code
  • add PR-open guard inside the concurrency-protected deploy job to skip late deploy/comment on closed PRs
  • add docs-preview-cleanup.yml to remove preview folders when PRs close
  • add shared gh-pages-deploy concurrency (queue: max) across deploy/preview/cleanup jobs to serialize writes

Security and permissions

  • untrusted PR code runs only in the unprivileged pkgdown job (contents: read)
  • all write operations to gh-pages are isolated in dedicated workflows/jobs running with write permissions

Validation

  • parsed updated workflow YAML files successfully
  • verified referenced action inputs/options against upstream action definitions

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@codecov

codecov Bot commented Oct 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.48%. Comparing base (2c14265) to head (b35059e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #110   +/-   ##
=======================================
  Coverage   75.48%   75.48%           
=======================================
  Files          30       30           
  Lines        5120     5120           
=======================================
  Hits         3865     3865           
  Misses       1255     1255           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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