File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 34
34
35
35
- name : Run bot
36
36
run : node medbot.js
37
- timeout-minutes : 1
37
+ timeout-minutes : 1
38
+
39
+ - name : Deploy to server
40
+ if : success()
41
+ uses :
webfactory/[email protected]
42
+ with :
43
+ ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
44
+
45
+ - name : Update and restart bots on OVH
46
+ if : success()
47
+ run : |
48
+ ssh -o StrictHostKeyChecking=no user@server_ip << 'EOF'
49
+ # Update MedBot and restart it
50
+ cd /home/ubuntu/apps/MedBot
51
+ git pull origin master
52
+ ./restartBot
53
+
54
+ # Update OrianaBot and restart it
55
+ cd /home/ubuntu/apps/OrianaBot
56
+ git pull origin master
57
+ ./restartBot
58
+ EOF
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " medbot" ,
3
- "version" : " 1.1.3 " ,
3
+ "version" : " 1.1.4 " ,
4
4
"description" : " " ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments