-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (48 loc) · 1.32 KB
/
Copy pathdeploy.yaml
File metadata and controls
59 lines (48 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Deploy to Prod with Self-Hosted Runner
on:
workflow_dispatch: # Allow manual triggering
jobs:
deploy:
runs-on: [self-hosted, prod] # Use the self-hosted runner
steps:
- name: Navigate to DX folder
run: cd ~/DX
- name: Pull latest changes
run: |
git checkout main
git pull origin main
- name: Pull Dx.Client
run: |
cd dx.client
git checkout main
git pull origin main
cd ..
- name: Pull Dx.Server
run: |
cd dx.server
git checkout main
git pull origin main
cd ..
- name: Pull Dx.backend
run: |
cd dx.backend
git checkout main
git pull origin main
cd ..
- name: Pull Rawgraphs
run: |
cd rawgraphs-charts
git checkout feat/DX-137
git pull origin feat/DX-137
cd ..
- name: Pull General AI API
run: |
cd general-ai-api
git checkout main
git pull origin main
cd ..
- name: Run deployment script
run: |
yes | sudo bash scripts/redeploy.sh test
- name: Run copy script
run: sudo rm -rf /var/www/html/prod/build/ && cp -r /root/DX/dx.client/prod/build/ /var/www/html/prod/