Merge pull request #169 from pknu-wap/fix/찐찐찐막 #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!!" |