Skip to content

chore(ai-bot): deploy build folder with rsync #2598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/deploy-alpha-admin-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ jobs:
switches: -arP
path: services/admin-web/build/
remote_path: ${{ secrets.ADMIN_WEB_DEPLOY_PATH }}
remote_host: ${{ secrets.ADMIN_WEB_DEPLOY_HOST }}
remote_user: ${{ secrets.ADMIN_WEB_DEPLOY_USER }}
remote_key: ${{ secrets.ADMIN_WEB_DEPLOY_KEY }}
remote_host: ${{ secrets.SSH_HOST }}
remote_user: ${{ secrets.SSH_USERNAME }}
remote_key: ${{ secrets.SSH_KEY }}
44 changes: 44 additions & 0 deletions .github/workflows/deploy-alpha-ai-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy AI Bot

on:
push:
branches:
- release/alpha
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') }}

- uses: ./.github/actions/build-packages
with:
hash: ${{ github.sha }}

- name: Build
run: |
pnpm ai-bot build
pnpm ai-bot pkg

- name: Deploy on Server
uses: burnett01/rsync-deployments@7.0.2
with:
switches: -arP
path: services/ai-bot/build/ai-bot
remote_path: ${{ secrets.AI_BOT_DEPLOY_PATH }}
remote_host: ${{ secrets.SSH_HOST }}
remote_user: ${{ secrets.SSH_USERNAME }}
remote_key: ${{ secrets.SSH_KEY }}
Loading