File tree Expand file tree Collapse file tree 2 files changed +47
-3
lines changed Expand file tree Collapse file tree 2 files changed +47
-3
lines changed Original file line number Diff line number Diff line change 40
40
switches : -arP
41
41
path : services/admin-web/build/
42
42
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 }}
Original file line number Diff line number Diff line change
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 }}
You can’t perform that action at this time.
0 commit comments