Skip to content

remove duplicated post #98

remove duplicated post

remove duplicated post #98

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