I have the followings.
- Apache server hosted on centos
- GitHub (GitHub Actions)
- An web app hosted on the local apache server.
Every time I make a change to a local branch and push to remote master
branch in GitHub, I have to ssh into the apache server and run git pull origin master
. What is the best way and how to set up an automatic pull/deployment on the local server so that it will listen and pull the change automatically?
I have read about GitHub Actions self-hosted runner and ssh solution. but I am not sure how to achieve this in the most efficient way.