Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not clean when building pkgdown site #374

Merged
merged 1 commit into from
Dec 19, 2024
Merged

do not clean when building pkgdown site #374

merged 1 commit into from
Dec 19, 2024

Conversation

cjyetman
Copy link
Member

This is the only reliable way I see to stop the pkgdown action from wiping the existing release site when building a dev site. The disadvantage is that if a page is completely removed, although it will not be linked anymore, it will still exist. This is a known problem that apparently there's currently no good known workaround for. In the r2dii packages I implemented a manual switch that one can use to wipe old files that should no longer exist.

This is the only reliable way I see to stop the pkgdown action from wiping the existing release site when building a dev site. The disadvantage is that if a page is completely removed, although it will not be linked anymore, it will still exist. This is a known [problem](r-lib/actions@dabdc15) that apparently there's currently no good known workaround for. In the r2dii packages I [implemented a manual switch](RMI-PACTA/r2dii.match#506) that one can use to wipe old files that should no longer exist.
@cjyetman cjyetman requested a review from jacobvjk as a code owner December 18, 2024 18:50
@cjyetman cjyetman requested a review from jdhoffa December 18, 2024 18:50
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.05%. Comparing base (9d940a3) to head (e54ef2f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #374   +/-   ##
=======================================
  Coverage   80.05%   80.05%           
=======================================
  Files          29       29           
  Lines        3269     3269           
=======================================
  Hits         2617     2617           
  Misses        652      652           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Dec 18, 2024

PR Preview Action v1.4.8
Preview removed because the pull request was closed.
2024-12-19 14:35 UTC

@cjyetman cjyetman merged commit 44daa51 into main Dec 19, 2024
11 checks passed
@cjyetman cjyetman deleted the cjyetman-patch-1 branch December 19, 2024 14:33
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