Hello, folks! I am asking here in hopes of having better luck than on Twitter
Does anyone know any tricks/workflows/utilities for knitting/rendering an R Markdown document into a different branch (e.g. "docs" or "gh-pages", which is then configured to be the source for GitHub Pages) so that the rendered HTML file is not in the main branch where the source Rmd is.
Here's a working example of rendering a distill website and deploying to GitHub Pages (don't worry about the non-existent content , let's just focus on the GHA workflow).
Thank you so much, @jennybryan! Having that as an example is super helpful!
Quick question because I don't have experience with GHA. Did you have to create a gh-pages branch manually or did JamesIves/github-pages-deploy-action@4.1.0 create it automatically?
Yeah as @cderv says, the action should create the branch for you.
I also have no particular reason to pin to that version (4.1.0) so if I were fiddling with something today, I'd go straight to the latest version of that action (4.1.3).