SFTP Deployment with Github Actions

Hello everyone,

Hope you’re all doing well!

Over the last few days I have been getting into learning Git Hub and using it in my development process (currently working on a custom WordPress theme). I mostly work solo, so I’ve never really been bothered.

What I really liked was the idea of automatically deploying local changes to the web server via Git Hub actions. I wanted to set up two actions – one that would fire automatically when merging into my “staging” branch to update my staging environment with those changes, and one that I would trigger manually to sync my live website with the latest main branch.

While setting them up, I wondered about the very limited options for deploying to a server using SFTP. I’ve only found some outdated and very unpopular plugins such as “wlixcc/SFTP-Deploy-Action”, with only 215 stars.

Then I wondered:

Is this actually a thing? Is my idea an unusual approach? Are there much better solutions out there? How do you guys do it?

I would be very interested to hear your POV!

Btw: My web host only allows SFTP and SHH connections. I’ve also considered 3rd party services like “DeployHQ”, but I’d definitely prefer to do it with GitHub.


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer