add hugo deploy workflow

This commit is contained in:
Pim Nelissen
2026-02-08 19:28:33 +01:00
parent 02e3bf816e
commit 58ab022661

View File

@ -0,0 +1,24 @@
name: Deploy Hugo Site
on:
push:
branches:
- main
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.147' # specify your Hugo version
- name: Build Hugo site
run: hugo --destination /home/pim/website-live
- name: Sync to live
run: rsync -av --delete ./public/ /home/pim/website-live/