Last active
January 8, 2023 16:32
-
-
Save anlisha-maharjan/0b1d7cd246e49ced8daace31491e3fe0 to your computer and use it in GitHub Desktop.
Deploy Laravel app on shared hosting with SSH GitHub Action.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🚀 Deploy on push master | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
web-deploy: | |
name: 🎉 Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🚚 Get latest code | |
uses: actions/checkout@v2 | |
- name: 📂 Deploy to server via ssh | |
uses: appleboy/ssh-action@v0.1.7 | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
port: ${{ secrets.PORT }} | |
script: "cd /var/www/html && sh ./.scripts/deploy.sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment