Skip to content

Update cicd_process.yml #74

Update cicd_process.yml

Update cicd_process.yml #74

Workflow file for this run

name: deploy to production
on:
push:
branches: [ dev ]
jobs:
build:
name: Deploying to Prod
runs-on: ubuntu-latest
steps:
- name: executing remote connection
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.CICD_HOST }}
username: ${{ secrets.CICD_USERNAME }}
key: ${{ secrets.CICD_SECRET }}
port: ${{ secrets.PORT }}
script: |
cd /var/www/dwh-his-frontend
sudo git pull
sudo npm run build
sudo rm -r /var/www/histest/* && sudo cp -r build/* /var/www/histest/