GitHub Actions → Nginx static deploy
08/02/2024, 24:00Here is the minimal flow that keeps the origin server simple:
- Push changes or new Markdown.
- GitHub Actions runs
npm ci && npm run build. - Upload
dist/to/var/www/portfolioon the domestic server viarsyncorscp. - Nginx serves the static directory—no Node runtime, no database.