Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AliQassab authored Feb 28, 2024
1 parent 92993a7 commit 64dfca0
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
name: Execute Remote SSH Commands

name: Deploy
on:
push:
branches: [main]

branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: SSH Remote Commands
uses: appleboy/[email protected]

with:
USERNAME: ${{ secrets.USER_NAME }}
HOST: ${{ secrets.HOST }}
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}
script: |
cd bahja-isaac-nas-discord-chatbot/bahja-isaac-nas-discord-chatbot
cd bahja-isaac-nas-discord-chatbot
git pull
npm install
pm2 stop index.js
npm i
pm2 stop chatbot
pm2 start index.js --name chatbot

0 comments on commit 64dfca0

Please sign in to comment.