Skip to content

Update main.yml

Update main.yml #42

Workflow file for this run

name: Deploy
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: SSH Remote Commands
uses: appleboy/[email protected]
with:
USERNAME: ${{ secrets.USERNAME }}
HOST: ${{ secrets.HOST }}
PASSWORD: ${{ secrets.PASSWORD }}
script: |
cd bahja-isaac-nas-discord-chatbot
git pull
npm i
nohup node index.js
# pm2 stop index.js
# pm2 start index.js --name chatbot