Skip to content

Removed consoles from authController #4

Removed consoles from authController

Removed consoles from authController #4

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
paths:
- 'client/**'
- 'server/**'
jobs:
deploy_client:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.modified, 'client/')
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: SSH and deploy
env:
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}}
run: |
echo "$SSH_PRIVATE_KEY" > keyfile
chmod 600 keyfile
mkdir -p ~/.ssh
cp known_hosts ~/.ssh/known_hosts
ssh -t -i keyfile ubuntu@ec2-13-127-105-158.ap-south-1.compute.amazonaws.com "sudo bash ~/deploy-client.sh"
deploy_server:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.modified, 'server/')
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: SSH and deploy
env:
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}}
run: |
echo "$SSH_PRIVATE_KEY" > keyfile
chmod 600 keyfile
mkdir -p ~/.ssh
cp known_hosts ~/.ssh/known_hosts
ssh -t -i keyfile ubuntu@ec2-13-127-105-158.ap-south-1.compute.amazonaws.com "sudo bash ~/deploy-server.sh"