Skip to content

Merge pull request #14 from rohit-zip/main #54

Merge pull request #14 from rohit-zip/main

Merge pull request #14 from rohit-zip/main #54

Workflow file for this run

name: Bloggios Web UI devsandbox
on:
push:
branches: [ main ]
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: Install dependencies
run: npm install
- name: Bloggios Prebuild
run: npm run bloggios-prebuild
- name: Deploy using ssh
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.V8_HOST }}
username: ${{ secrets.V8_USERNAME }}
key: ${{ secrets.V8_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