File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to EC2
2+
3+ on :
4+ push :
5+ branches :
6+ - main # Replace with your branch name
7+
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v2
15+
16+ - name : SSH to EC2 and deploy
17+ uses : appleboy/ssh-action@master
18+ with :
19+ host : ${{ secrets.EC2_HOST }}
20+ username : ${{ secrets.EC2_USERNAME }}
21+ key : ${{ secrets.SSH_PRIVATE_KEY }}
22+ script : |
23+ cd /path/to/your/project
24+ git pull origin main
25+ # Add any additional deployment commands here
Original file line number Diff line number Diff line change 11# Portfolio
22
3- ### Watch my project : [ Preview] ( https://devnamdev2003.github.io )
3+ ### Watch it : [ Preview] ( https://devnamdev2003.github.io )
You can’t perform that action at this time.
0 commit comments