Skip to content

Merge pull request #56 from bendsouza2/enhancement/backend-deploy #1

Merge pull request #56 from bendsouza2/enhancement/backend-deploy

Merge pull request #56 from bendsouza2/enhancement/backend-deploy #1

name: Deploy to EC2
on:
push:
branches:
- main
paths:
- app/**
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to EC2
uses: appleboy/ssh-action@v0.1.7
with:
host: ${{ secrets.EC2_HOST }}
username: ubuntu
key: ${{ secrets.EC2_SSH_KEY }}
script: |
cd ~/yt_translator
app/post_update.sh