Skip to content

Update overallReportingRatesByFacilityReported.js #79

Update overallReportingRatesByFacilityReported.js

Update overallReportingRatesByFacilityReported.js #79

name: deploy to production
on:
push:
branches: [ prod ]
jobs:
build:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: executing remote connection
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.CICD_SECRET }}
port: ${{ secrets.PORT }}
script: |
sudo git config --global --add safe.directory /apps/github-workflows/dwh-portal
cd /apps/github-workflows/dwh-portal
sudo git pull origin prod
sudo git status
sudo yarn install --ignore-engines
sudo yarn build
sudo rm -rf /tmp/dwh
sudo mv /var/www/dwh /tmp/
sudo mv build /var/www/dwh