Skip to content

Automatically publish blog posts

Could we do some integration thingy to have the blog automagically build a blog post/rebuild the blog when we push to master?

I'm not hugely familiar but I would think something along the lines of:

  • Use a webhook making a request to f.e. `blog.mobian-project.org/api/update_blog?api_token=ABCDEFG
  • The server then runs git fetch && git pull && hugo -D

Probably a good idea to have a token for updating the blog.