Skip to content

Commit b683d26

Browse files
committed
chore(ai-bot): deploy build folder with rsync
1 parent 309e405 commit b683d26

File tree

2 files changed

+47
-3
lines changed

2 files changed

+47
-3
lines changed

.github/workflows/deploy-alpha-admin-web.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ jobs:
4040
switches: -arP
4141
path: services/admin-web/build/
4242
remote_path: ${{ secrets.ADMIN_WEB_DEPLOY_PATH }}
43-
remote_host: ${{ secrets.ADMIN_WEB_DEPLOY_HOST }}
44-
remote_user: ${{ secrets.ADMIN_WEB_DEPLOY_USER }}
45-
remote_key: ${{ secrets.ADMIN_WEB_DEPLOY_KEY }}
43+
remote_host: ${{ secrets.SSH_HOST }}
44+
remote_user: ${{ secrets.SSH_USERNAME }}
45+
remote_key: ${{ secrets.SSH_KEY }}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy AI Bot
2+
3+
on:
4+
push:
5+
branches:
6+
- release/alpha
7+
paths:
8+
- ".github/workflows/**"
9+
- "packages/@liexp/core/**"
10+
- "packages/@liexp/shared/**"
11+
- "packages/@liexp/backend/**"
12+
- "services/ai-bot/**"
13+
14+
jobs:
15+
deploy-ai-bot:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
node-version: [23.x]
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: ./.github/actions/install-deps
24+
with:
25+
hash: ${{ hashFiles('**/pnpm-lock.yaml') }}
26+
27+
- uses: ./.github/actions/build-packages
28+
with:
29+
hash: ${{ github.sha }}
30+
31+
- name: Build
32+
run: |
33+
pnpm ai-bot build
34+
pnpm ai-bot pkg
35+
36+
- name: Deploy on Server
37+
uses: burnett01/rsync-deployments@7.0.2
38+
with:
39+
switches: -arP
40+
path: services/ai-bot/build/ai-bot
41+
remote_path: ${{ secrets.AI_BOT_DEPLOY_PATH }}
42+
remote_host: ${{ secrets.SSH_HOST }}
43+
remote_user: ${{ secrets.SSH_USERNAME }}
44+
remote_key: ${{ secrets.SSH_KEY }}

0 commit comments

Comments
 (0)