Skip to content

Merge pull request #51 from GSM-MSG/chat-to-document #26

Merge pull request #51 from GSM-MSG/chat-to-document

Merge pull request #51 from GSM-MSG/chat-to-document #26

Workflow file for this run

name: Deploy Aws
on:
push:
branches:
- master
jobs:
deploy_aws:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: excuting remote ssh commands
uses: appleboy/[email protected]
with:
host: ${{ secrets.REMOTE_IP }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.REMOTE_PRIVATE_KEY }}
port: ${{ secrets.REMOTE_SSH_PORT }}
script: |
cd /home/ubuntu/salt-bot
git pull origin master
pm2 kill
npm i --force
npm run build
pm2 start dist/index.js