Initial Hugo site with Gitea Actions deploy workflow
Some checks failed
Hugo Build & Deploy / build-deploy (push) Failing after 1m5s

This commit is contained in:
2026-02-06 19:56:10 +01:00
parent 3cb23be2d2
commit 3f087ded01
10 changed files with 123 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
name: Hugo Build & Deploy
on:
push:
branches: [main]
jobs:
build-deploy:
runs-on: ubuntu-latest
container:
image: klakegg/hugo:ext-alpine
volumes:
- /var/www/blog.bojemoi.me:/deploy
steps:
- uses: actions/checkout@v4
- name: Build Hugo site
run: hugo --minify
- name: Deploy to web root
run: |
rm -rf /deploy/*
cp -r public/* /deploy/
echo "Deployed $(date -u '+%Y-%m-%d %H:%M:%S UTC')" > /deploy/.deployed