Merge pull request #5 from rohit-zip/main #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bloggios Web UI devsandbox | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- 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 pull | |
npm cache clean --force | |
npm install | |
npm run build | |
pm2 restart devsandbox.config.js |