blog/.gitea/workflows/deploy.yml
Thanwer d5605b302e
Some checks failed
Deploy / deploy (push) Failing after 6s
Pin Hugo to 0.121.2 for anubis2 theme compatibility
The theme uses site.Locale (removed in 0.123) and .Language.Label
(removed in 0.124). Pinning to 0.121.2, the last pre-deprecation
stable release.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 18:06:47 +02:00

31 lines
717 B
YAML

name: Deploy
on:
push:
branches: [main]
workflow_dispatch:
env:
HUGO_VERSION: "0.121.2"
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: node:20-bookworm
volumes:
- /srv/www:/srv/www
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install Hugo extended
run: |
curl -sL "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-arm64.tar.gz" | tar xz
install hugo /usr/local/bin/
- name: Build and deploy to /srv/www/blog
run: hugo --gc --minify --cleanDestinationDir --destination /srv/www/blog