Skip to content

feat: 更新github actions #10

feat: 更新github actions

feat: 更新github actions #10

Workflow file for this run

name: 发布到云服务器
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands to develop
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
port: ${{ secrets.DEPLOY_PORT }}
username: ${{ secrets.DEPLOY_USER }}
password: ${{ secrets.DEPLOY_SECRET }}
script: |
cd ${{ secrets.DEPLOY_DIR }}
git clone git@github.com:chenchunyang123/ccy-blog-client.git
pm2 delete blog || true
rm -rf blog || true
mv ccy-blog-client blog
cd blog
npm install
npm run build
npm run start:pm2