add server github actions + make payload compatible with openAI + sma… #1
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 # Or your default branch | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Execute remote ssh commands | |
uses: appleboy/ssh-action@master | |
with: | |
host: chatserver.chatbutler.ai | |
username: root | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
script: | | |
cd promptsandbox.io | |
git pull | |
yarn workspace @chatbutler/shared build | |
yarn workspace @chatbutler/server build | |
pm2 restart ecosystem.config.js |