Let’s see the process to deploy Laravel app on shared hosting with SSH GitHub Action. Set up Laravel project in GitHub.

Using appleboy/ssh-action; any ssh commands can be remotely executed to the shared hosting server with SSH username/password provided. Add GitHub Secrets: Goto Settings tab on the GitHub repository, click on Secrets > Actions > New Repository Secret to add the server host, ssh username, password, and port.

Now anytime one pushes to the master branch, the pipeline starts running a web-deploy job that deploys the Laravel app.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners