Skip to content

update

update #11

Workflow file for this run

name: Deploy to EC2
on:
push:
branches:
- main # Replace with your branch name
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: SSH to EC2 and deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /var/www/html/dev
git pull origin main
# Add any additional deployment commands here