Skip to content

Commit dab1132

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

File tree

2 files changed

+48
-3
lines changed

2 files changed

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

0 commit comments

Comments
 (0)