Skip to content

Commit

Permalink
Add continuous development
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyxn committed Dec 16, 2023
1 parent f2a820a commit 2163831
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
- name: connect to server via cloudflared
run:
ssh -o ProxyCommand="cloudflared access ssh --hostname ${{ secrets.SSH_HOST }}" ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }}
- name: deploy bot
- name: deploy bot using pm2
run:

cd ~/chitanda-bot
git pull origin master
git status
npm install
pm2 reload chitandabot
pm2 restart chitandabot

0 comments on commit 2163831

Please sign in to comment.