Skip to content

Update start script in package.json to use 'cp' instead of 'mv' #18

Update start script in package.json to use 'cp' instead of 'mv'

Update start script in package.json to use 'cp' instead of 'mv' #18

Workflow file for this run

name: Deploy
on:
push:
branches:
- master # or the branch you want to deploy from
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: SSH and DEPLOY to AWS EC2
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
shell: bash
run: |
echo "$SSH_PRIVATE_KEY" > keyfile
echo "$HOME/.local/bin" >> $GITHUB_PATH
chmod 600 keyfile
mkdir -p ~/.ssh
cp known_hosts ~/.ssh/known_hosts
ssh -t -i keyfile ubuntu@ec2-16-170-250-205.eu-north-1.compute.amazonaws.com "sudo bash ~/deploy.sh"