Boris Mann

Open Source. Community. Decentralized Web. Building dev tools at Fission. Cooks & eats.

Home

Github Actions for Jekyll

  • Last Edit:

TLDR; you can use Github Actions to build and publish your Jekyll site for free, which lets you do things like use arbitrary Jekyll plugins, as well as custom publishing end points like Fission.

I used the nicely commented limjh16/jekyll-action-ts to power the Github Actions to build this JekyllJekyll
Set env variable PAGES_REPO_NWO to build on [[Netlify]]
Set the environment variable PAGES_REPO_NWO to a repo such as spadebuilders/EIPs if you want to have Jekyll sites build on Netlify.
Posts by Year
{% raw %}
{% for post in site.posts %}
{% capture current_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% if current_year != previous_year %}
{% unless forloop.first %}
</ul>
{% endunless %}
<h2>{{ current_year }}</h2>
<ul>
...
site.

I didn’t do anything special to make it work. Here’s the code bmann/bmcgarden, with Fission PublishFission Publish
The [[Fission]] Publish action for Github. Add it to a project to publish to Fission at the end of a build.
added at the end.

You have a certain amount of minutes included with your Github account. Looking at the timing for my workflows, they are about 4 - 6 minutes to build and publish the site. I pay for a personal Github Pro account ($4/month), but because this site is not a private repo, I guess I can use as many minutes as I want? I’m not seeing any indication that I am using up minutes.

For private repos, the billings page says that 3000 minutes per month are included. That would be 3000 minutes / 6 minutes per build = 500 builds, So, I could publish up to 500 builds / 30 days per month = 16 builds per day.

My site takes quite a long time to build because the Simply JekyllSimply Jekyll
Highly customized [[Jekyll]] template that supports both posts and custom notes, with everything able to be linked together with backlinks and other features.
Found via @bopuc on Ton’s post.

By Raghuveer S, [[@raghuveerdotnet on Github::https://github.com/raghuveerdotnet]].
Preview / example https://simply-jekyll.netlify.app/, available on Github https://github.com/raghuveerdotnet/simply-jekyll.
Tutorial [[How to setup Simply Jekyll]], which is basically clone the repo, connect to [[Netl...
theme which powers backlinks and various other features is all implemented at the theme layer. And, Jekyll is slow for large sites like mine.