Update main.yml #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |