yuki's notes

automating obsidian to github pages

i turned my local obsidian notes into a fully automated publishing pipeline. here’s how i did it.

goals

architecture overview

the deployment script

created a script so that one command handles everything:

  1. validates paths and required commands ( sync, hugo, git).
  2. uses sync –delete to mirror obsidian posts into content/posts.
  3. runs hugo –minify to build the site.
  4. pushes main to github repository via ssh.
  5. publishes the public/ directory by pushing a gh-pages branch via git subtree split.

github setup

result

running the script now syncs whatever I write in obsidian, rebuilds the hugo site, pushes the commits, and republishes github pages instantly.

<< Previous Post

|

Next Post >>