Skip to content

Stop Dev Deployment #274

Stop Dev Deployment

Stop Dev Deployment #274

name: Zuri main dev Deployment
# on:
# Triggers the workflow on push or pull request events but only for the main branch
# push:
# branches: [dev]
# Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Git Pull on Server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.ZURI_HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd /var/www/zuri.chat/zurimain/dev/zc_main
git fetch --all
git reset --hard origin/dev
git stash
git pull origin dev
yarn install --ignore-engines
yarn build
pm2 restart zc_main_dev