File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 13
13
- name : Checkout
14
14
uses : actions/checkout@v4
15
15
16
+ - name : Check prisma has changes
17
+ uses : dorny/paths-filter@v3
18
+ id : paths-filter
19
+ with :
20
+ filters : |
21
+ prisma: ["prisma/**"]
22
+
16
23
- name : Configure SSH
17
24
run : |
18
25
mkdir -p ~/.ssh
39
46
40
47
- name : Install dependencies
41
48
run : |
42
- ssh playground-umc-7th 'npm install --prefix /opt/app/'
49
+ ssh playground-umc-7th 'cd /opt/app; npm install'
50
+ ssh playground-umc-7th 'cd /opt/app; npm exec prisma generate'
51
+
52
+ - name : Apply prisma migrations
53
+ if : steps.paths-filter.outputs.prisma == 'true'
54
+ run : |
55
+ ssh playground-umc-7th 'cd /opt/app; npm exec prisma migrate deploy'
43
56
44
57
- name : Copy systemd service file
45
58
run : |
50
63
51
64
[Service]
52
65
User=${USER}
53
- ExecStart=/usr/bin/npm run dev --prefix /opt/app/
66
+ ExecStart=/usr/bin/npm run start --prefix /opt/app/
54
67
Restart=always
55
68
56
69
[Install]
You can’t perform that action at this time.
0 commit comments