~/ru.blog.lis.im

Заметки

Деплой Hugo на VPS через GitHub Actions

Стек

  • Hugo + Tailwind CSS + PostCSS
  • GitHub Actions: build → rsync → VPS
  • VPS: Ubuntu + nginx + certbot (Let’s Encrypt)

Порядок настройки

1. Node.js зависимости

Если тема использует Tailwind/PostCSS — обязателен postcss-cli:

1cd ru.blog
2npm install --save-dev postcss-cli
3git add package.json package-lock.json
4git commit -m "add postcss-cli"

Без postcss-cli Hugo не найдёт бинарник postcss через npx и билд упадёт.