Skip to content

Update main.yml

Update main.yml #32

Workflow file for this run

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