Skip to content

각종 오류수정 #34

각종 오류수정

각종 오류수정 #34

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!!"