OSDL
Open Source DevLab collaborate · build · ship
How to Create a GitHub Actions Workflow for Jekyll Build and Deploy to GitHub Pages Automatically
Rating: 4.1 / 5

How to Create a GitHub Actions Workflow for Jekyll Build and Deploy to GitHub Pages Automatically

Getting a Jekyll site building by itself

So you have a Jekyll site, it runs fine on your laptop, and then the second you push to GitHub you want it to just work. No manual builds, no dragging folders around, no “wait did I forget to commit the _site folder” panic. That is where GitHub Actions hits. It can build your Jekyll site every time you push, and then deploy it right away, usually to GitHub Pages.

I like this because it feels clean. You change a post, push it, and the repo does the boring part for you. The workflow file is just YAML sitting in .github/workflows, and once it is set up, it keeps doing the same job over and over without complaining.

Quick ending

If your goal is simple, publish a Jekyll site without babysitting builds, then a GitHub Actions workflow is basically the easiest win. Push code in one place, get a live site out the other side.

COMMENTS

No comments yet. (This block is reserved for future threaded discussions.)