-
Notifications
You must be signed in to change notification settings - Fork 217
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
Use pkgdown action with PR preview #865
Comments
I looked at that workflow, and it is a good idea, but it does not deal with concurrency at all, so I think builds will fail when other builds finished just before them. We can use the ideas from there, but we primarily need a good way to deal with concurrency, and GHA is not helping at all. This said, if you like that workflow, AFAICT you can use it as a drop-in replacement in your repos, just to see how it works in practice. I am going to do the same. |
I mentioned this to Hadley that I hadn't resolved concurrency yet. IIRC I think concurrency can mostly be solved by pulling In general, commits from pull requests are orthogonal to other commits and a "latest wins" approach is fine. Ideally commits on |
For the record, we could also use netlify or cloudflare pages for OOTB live PR previews, but they both have usage limits, 300 build minutes and 300 build minutes per month, respectively. |
The other option would be to set up something with S3, where we just eat the (presumably small) cost of hosting. But that's likely to be a non-trivial amount of work. |
Yeah, I think the simplest would be to brute-force the concurrency issue with a pull-apply-push-undo loop. |
By copying @gadenbuie's: https://github.com/rstudio/education-workflows/blob/main/examples/pkgdown.yaml
Itt provides a nice way to preview pull requests and builds up a directory structure for tags that we can later use for versioned sites.
The text was updated successfully, but these errors were encountered: