wp theme git push to github and vps

124 Views Asked by At

Any idea how to git push your project to github. Then, github will push (webhooks) only specific folder (i.e. dist contents) to digital ocean vps?

For example, I am working on a wordpress project locally. Then, I push it to github. But I want github to automatically push the contents of fist folder to digital ocean vps. I use a deploy.php script to automate the task and it's working fine. But unable to push a specific folder to vps.

1

There are 1 best solutions below

1
Imon Dela Rosa On

I found a solution. I have to use github actions instead.

https://github.com/marketplace/actions/ftp-deploy#exclude-files