Automatic deployment to Hostinger from GitHub
How to publish a site to Hostinger automatically from a GitHub repository: Git deployment in hPanel, a webhook, a GitHub Actions build and keeping secrets safe.
As long as a WordPress site lives only on the server, every change is a live edit with no history and no calm way back. Moving it into a Git repository fixes that and opens the way to automatic publishing and working through an AI agent. There are two paths, and the choice depends on what the site does.
This suits sites that need an admin panel for editors, a WooCommerce shop, customer accounts or plugins that cannot be replaced without WordPress.
What goes into the repository:
What stays out:
uploads folder with media — it needs backups, not Git;wp-config.php with passwords — secrets stay on the server or in environment variables;Publishing: code changes from the repository are deployed automatically, through the host's Git deployment or GitHub Actions (rsync/SSH). WP-CLI handles database tasks: search and replace of URLs, plugin updates, cache flushes.
This suits company sites, blogs and multilingual sites whose content does not change every minute. That is how this site moved.
The benefits: no PHP or database, nothing to patch or hack, cheaper hosting, and all content is plain files that are easy to edit by hand or through an AI agent.
Once the site is in a repository, the next step is automatic deployment to your host from GitHub and working through an AI agent. If you need help with the move, see agentic website management.
Need help with this?
Local machine → repository → server: you ask, an AI agent changes the site, every change is reviewed, saved and deployed automatically. I set it up and teach your team.
How it works →

How to publish a site to Hostinger automatically from a GitHub repository: Git deployment in hPanel, a webhook, a GitHub Actions build and keeping secrets safe.

How managing a website through an AI coding agent works: what to prepare, the cycle from request to publishing, and which tasks to trust an agent with.

How a 544-page multilingual WordPress site moved into a Git repository run by an AI agent: 9 languages, 541 old URLs kept and automatic deployment.

Contact
An AI agent, an automation, a website improvement or a full rebuild — describe the task in a few lines and I will reply within one business day.
Tallinn, Estonia · working remotely across Europe
The site does not use cookies. Visit statistics are collected without them. Learn more