5 Automating deployment with GitHub

In Chapter 2 we used drag and drop of the public folder, but if you are familiar with version control (and if you aren’t it’s definitely worth learning), then you can automate deployment using GitHub.

The details are in the blogdown book, but essentially you can link netlify to your GitHub account and deploy to netlify from there. This means that anytime you update your site in Rstudio, you can push your files to GitHub and your site will be deployed automatically.

Basically, this means you are tracking your changes and deploying in one step, which is both quicker and means it’s easy to revert should you need to.

R Core Team. 2018. R: A Language and Environment for Statistical Computing. Vienna, Austria: R Foundation for Statistical Computing. https://www.R-project.org/.

Xie, Yihui. 2018. Bookdown: Authoring Books and Technical Documents with R Markdown. https://CRAN.R-project.org/package=bookdown.