Resolve ts build issue, use turbo builds #44
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: | |
launch-bot: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Installing dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: SSH Remote Commands | |
uses: appleboy/ssh-action@master | |
with: | |
HOST: ${{ secrets.HOST }} | |
USERNAME: ${{ secrets.USERNAME }} | |
KEY: ${{ secrets.KEY }} | |
script: | | |
cd brainbot | |
git pull | |
npm ci | |
npm run build | |
pm2 update |