Skip to content

Merge pull request #164 from pknu-wap/feature/또또추가사항 #24

Merge pull request #164 from pknu-wap/feature/또또추가사항

Merge pull request #164 from pknu-wap/feature/또또추가사항 #24

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