Skip to content

Merge pull request #169 from pknu-wap/fix/찐찐찐막 #29

Merge pull request #169 from pknu-wap/fix/찐찐찐막

Merge pull request #169 from pknu-wap/fix/찐찐찐막 #29

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