Skip to content

Merge pull request #40 from alanfilho184/dev #41

Merge pull request #40 from alanfilho184/dev

Merge pull request #40 from alanfilho184/dev #41

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 install
pm2 restart bot