Skip to content

Update deployBack.yml #89

Update deployBack.yml

Update deployBack.yml #89

Workflow file for this run

# name: NodeJS with Grunt
# on:
# push:
# branches: ["main", "develop"]
# jobs:
# build:
# runs-on: ubuntu-latest
# env:
# CI: false
# strategy:
# matrix:
# node-version: [18.x]
# steps:
# - uses: actions/checkout@v3
# - name: Deploy
# uses: appleboy/[email protected]
# with:
# host: ${{ secrets.HOST }}
# username: 'ubuntu'
# key: ${{ secrets.PRIVATE_KEY }}
# script: |
# cd /home/ubuntu/app/GLOG
# git pull origin develop
# cd client
# npm install
# echo "Build!!"
# npm run build
# echo "Restart pm2!!"
# pm2 kill
# pm2 start "npm run start"
# echo "Finished!!"