Skip to content

Update deploy.yml

Update deploy.yml #12

Workflow file for this run

name: Push-to-EC2
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy to EC2 on main branch push
runs-on: ubuntu-latest
steps:
- name: Checkout the files
uses: actions/checkout@v2
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.EC2_SSH_KEY }}
REMOTE_HOST: ${{ secrets.HOST_DNS }}
REMOTE_USER: ${{ secrets.USERNAME }}
TARGET: ${{ secrets.TARGET_DIR }}