chore(ai-bot): deploy build folder with rsync #2
Workflow file for this run
This file contains hidden or 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 AI Bot | |
on: | |
push: | |
branches: | |
- release/alpha | |
- chore/deploy-ai-bot | |
paths: | |
- ".github/workflows/**" | |
- "packages/@liexp/core/**" | |
- "packages/@liexp/shared/**" | |
- "packages/@liexp/backend/**" | |
- "services/ai-bot/**" | |
jobs: | |
deploy-ai-bot: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [23.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-deps | |
with: | |
hash: ${{ hashFiles('**/pnpm-lock.yaml') }} | |
- name: Update .env file for AI Bot | |
run: cp ./services/ai-bot/.env.alpha ./services/ai-bot/.env | |
- uses: ./.github/actions/build-packages | |
with: | |
hash: ${{ github.sha }} | |
- name: Build | |
run: pnpm ai-bot build | |
- name: Deploy on Server | |
uses: burnett01/rsync-deployments@7.0.2 | |
with: | |
switches: -arP --exclude=* --include=services/ai-bot/build --include=services/ai-bot/sea-config.json | |
path: services/ai-bot/ | |
remote_path: ${{ secrets.AI_BOT_DEPLOY_PATH }} | |
remote_host: ${{ secrets.SSH_HOST }} | |
remote_user: ${{ secrets.SSH_USERNAME }} | |
remote_key: ${{ secrets.SSH_KEY }} |