chore: initial commit with Gitea Actions workflow

This commit is contained in:
2026-08-11 15:26:16 -04:00
parent 46f3eb0a8b
commit c8d945dc7c
8 changed files with 109 additions and 8 deletions
+34
View File
@@ -0,0 +1,34 @@
name: Build and Deploy Hugo Site
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0 # needed for .GitInfo and lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- name: Build site
run: hugo --minify --gc
- name: Deploy to Caddy site directory
run: |
# Runner is on the same host as Caddy.
# /deploy is mounted into the runner container → maps to /srv/docker/caddy/site on the host.
echo "Syncing built site to /deploy ..."
rsync -av --delete public/ /deploy/
echo "Deploy complete."