From 58ab022661d4b4be5186666353cb01f941d93c13 Mon Sep 17 00:00:00 2001 From: Pim Nelissen Date: Sun, 8 Feb 2026 19:28:33 +0100 Subject: [PATCH] add hugo deploy workflow --- .gitea/workflows/deploy-hugo.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/deploy-hugo.yaml diff --git a/.gitea/workflows/deploy-hugo.yaml b/.gitea/workflows/deploy-hugo.yaml new file mode 100644 index 0000000..0e8b394 --- /dev/null +++ b/.gitea/workflows/deploy-hugo.yaml @@ -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/