In this video, we learn how to publish a Quarto project using GitHub Pages AND GitHub Actions, in a way that avoids the need to render any files locally. GitHub Actions handles the whole process from start to finish: Quarto + R will be installed, the correct versions of each R package you need will be installed, the Quarto project will be fully rendered, and then it'll be published on GitHub Pages. It's all free, and it only takes a few minutes to set up.
It's also surprisingly much easier than I thought it would be:
✅ Step 1 - Create a new Quarto project that uses Git and renv
✅ Step 2 - Add a .github/workflows/publish.yml file (there's a template!)
✅ Step 3 - Push everything to GitHub, and change which branch GitHub Pages is being built from
Link to publish.yml template: https://quarto.org/docs/publishing/github-pages.html#example-knitr-with-renv
Want to support my channel or connect?
☕Buy me a coffee: https://ko-fi.com/melissavanbussel
💼 LinkedIn: https://www.linkedin.com/in/melissavanbussel/
🐦 Twitter: https://twitter.com/melvanbussel
🌐 Website: https://www.melissavanbussel.com/
💻 GitHub: https://github.com/melissavanbussel
*Please note: it’s helpful for me if you send me a message on LinkedIn when you add me letting me know you’re adding me because of YouTube, so that I can keep track of how I know each person in my network😊
00:00 - Introduction
00:59 - Creating a Quarto Project
03:58 - Creating the .github/workflows/publish.yml file
05:16 - Configuring GitHub Pages