Skip to content

Merge branch 'master' of https://github.com/RiverTwilight/rene.wang #99

Merge branch 'master' of https://github.com/RiverTwilight/rene.wang

Merge branch 'master' of https://github.com/RiverTwilight/rene.wang #99

Workflow file for this run

name: Node Github CI
on:
push:
branches:
- master
jobs:
deploy:
if: ${{ false }}
runs-on: ubuntu-latest
steps:
- name: SSH and deploy node app
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
script: |
cd /app/ygk-blog
rm -rf package-lock.json
git pull origin master
npm install --production
npm run build
kill $(lsof -t -i:4000)
pm2 restart ygk-blog || pm2 start npm --name "ygk-blog" -- start