Skip to content

Merge pull request #39 from heatherbaier/heatherbaier-patch-5 #5

Merge pull request #39 from heatherbaier/heatherbaier-patch-5

Merge pull request #39 from heatherbaier/heatherbaier-patch-5 #5

name: Deploy on Master Push
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setting up SSH key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_aws.pem
chmod 600 ~/.ssh/id_aws.pem
ssh-keyscan -H ec2-34-224-89-239.compute-1.amazonaws.com >> ~/.ssh/known_hosts
- name: Connect to EC2 and run script
run: ssh -i "~/.ssh/id_aws.pem" [email protected]