Server deploy (static)
This repo builds an Astro static site into dist/ and deploys it to a Linux server via rsync over SSH.
One-time server setup
- Create a deploy directory, e.g.
/var/www/publish. - Configure your web server (Caddy or Nginx) to serve that directory.
- Create an SSH key for CI and add its public key to the server.
Gitea Actions secrets (repo settings)
SITE_URLPUBLIC_NEWSLETTER_ACTIONPUBLIC_NEWSLETTER_EMAIL_FIELDPUBLIC_NEWSLETTER_TITLE(optional)PUBLIC_NEWSLETTER_DESCRIPTION(optional)DEPLOY_SSH_HOSTDEPLOY_SSH_PORTDEPLOY_SSH_USERDEPLOY_PATHDEPLOY_SSH_KEY(private key)
Example Caddyfile
See deploy/Caddyfile.example.