Skip to content

Commit 16b033f

Browse files
committed
2 parents 0188dc3 + b391d0c commit 16b033f

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/aws.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Portfolio
22

3-
### Watch my project : [Preview](https://devnamdev2003.github.io)
3+
### Watch it : [Preview](https://devnamdev2003.github.io)

0 commit comments

Comments
 (0)