File tree 2 files changed +27
-0
lines changed
2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 76
76
host : ${{ secrets.HOST }}
77
77
username : ${{ secrets.SSH_USER }}
78
78
password : ${{ secrets.SSH_PASSWORD }}
79
+ - name : Run a script on remote server (start the application)
80
+ if : always()
81
+ uses : fifsky/ssh-action@master
82
+ with :
83
+ command : |
84
+ cd hacene/demo/actions/ && java -jar workflow-github-actions.jar &
85
+ host : ${{ secrets.HOST }}
86
+ user : ${{ secrets.SSH_USER }}
87
+ pass : ${{ secrets.SSH_PASSWORD }}
88
+ args : " -tt"
89
+ # The & in the command runs the process on background
79
90
Original file line number Diff line number Diff line change 8
8
<artifactId >workflow-github-actions</artifactId >
9
9
<version >1.0-SNAPSHOT</version >
10
10
11
+ <packaging >jar</packaging >
12
+
11
13
<properties >
12
14
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
13
15
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
57
59
58
60
<build >
59
61
<plugins >
62
+ <plugin >
63
+ <groupId >org.springframework.boot</groupId >
64
+ <artifactId >spring-boot-maven-plugin</artifactId >
65
+ <version >2.2.6.RELEASE</version >
66
+ <executions >
67
+ <execution >
68
+ <goals >
69
+ <goal >build-info</goal >
70
+ <goal >repackage</goal >
71
+ </goals >
72
+ </execution >
73
+ </executions >
74
+ </plugin >
75
+
60
76
<plugin >
61
77
<groupId >org.apache.maven.plugins</groupId >
62
78
<artifactId >maven-compiler-plugin</artifactId >
You can’t perform that action at this time.
0 commit comments