Skip to content

Merge branch 'dev' of github.com:alanfilho184/Kami into dev #27

Merge branch 'dev' of github.com:alanfilho184/Kami into dev

Merge branch 'dev' of github.com:alanfilho184/Kami into dev #27

Workflow file for this run

name: Auto Deploy
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Deploying to Vultr
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
cd Kami
rm package-lock.json
git pull
npm prune
npm install
npm audit fix --force
pm2 reload bot