Skip to content

bloggios-web-ui load #4

bloggios-web-ui load

bloggios-web-ui load #4

Workflow file for this run

name: bloggios-web-ui load
on:
workflow_run:
workflows: ["bloggios-web-ui"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Deploy using ssh
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.V4_HOST }}
username: ${{ secrets.V4_USERNAME }}
key: ${{ secrets.V4_VPS_PRIVATE_KEY }}
port: 22
script: |
cd /root/bloggios-web-ui
git stash
git pull
npm cache clean --force
npm install
npm run build
pm2 restart app.config.js