Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
just try to connect aws ec2, if successful, proceed accordingly
  • Loading branch information
alitpc25 committed Nov 26, 2023
1 parent a279727 commit 1fee826
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4

- name: SSH into AWS EC2
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.AWS_EC2_HOST }}
username: ec2-user
key: ${{ secrets.AWS_PRIVATE_KEY }}
script: |
ls
- name: Update and Install libssl-dev
run: |
sudo apt-get update
Expand Down

0 comments on commit 1fee826

Please sign in to comment.