Skip to content

firebase push notification setup | reports based on date on teachers … #349

firebase push notification setup | reports based on date on teachers …

firebase push notification setup | reports based on date on teachers … #349

Workflow file for this run

name: Deploy
on:
push:
branches: [master]
jobs:
deploy:
name: Deploying Latest Commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: deploying application to EC2
env:
PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
HOSTNAME: ${{ secrets.SERVER_HOST }}
USER_NAME: ${{ secrets.SERVER_USERNAME }}
run: |
echo "$PRIVATE_KEY" > private_key && chmod 600 private_key
ssh -o StrictHostKeyChecking=no -i private_key ${USER_NAME}@${HOSTNAME} sh deploy.sh