How to Publish a Hugo Project to Remote Server Automatically?
A pipeline for blogging automatically though Github
Purpose
write and serve markdown blog without caring about the html, theme, archiving, server, website, domain …
What to Build? (Workflow)
Local repo
↓
Github repo
↓
Webhook
↓
Server repo
↓
Caddy hook
↓
Hugo build
↓
Caddy serve
Step by Step Examples
generate a new hugo project
# build a hugo site hugo new MyBlog # theme # git submodule # write the markdown file # vim content/posts/xxx.md
server side
install
hugo, go, caddy
github side
webhook
Last modified on 2023-11-01