This article is not maintained any longer and likely not up to date. DuckDuckGo might help you find an alternative.

How I deploy my Jigsaw blog to Github Pages

I used Tighten's Jigsaw to build this website and blog (Update: 20-11-29: I switched to Statamic with the blog…). I used to host it on Netlify and let it build it as well. But as I make many granular edits and the build taking two 2 minutes, I was looking for a quicker alternative where I just push the output HTML files instead of the source files. Turns out that Github Pages is what I looked for.

Since I had some problems setting it up, here is my final working solution:

git push github `git subtree split --prefix build_production`:gh-pages --force
```

- I also have an alias for that in my `~/.zshrc`: `ghpmb` (where mb stands for martinbetz)
- That's it!
Did this help you? 👍 👎