File tree 3 files changed +61
-1
lines changed
3 files changed +61
-1
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2
+ # For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path
3
+
4
+ name : Maven Package
5
+
6
+ on :
7
+ release :
8
+ types : [created]
9
+
10
+ jobs :
11
+ build :
12
+
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Set up JDK 1.8
18
+ uses : actions/setup-java@v1
19
+ with :
20
+ java-version : 1.8
21
+ server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
22
+ settings-path : ${{ github.workspace }} # location for the settings.xml file
23
+
24
+ - name : Build with Maven
25
+ run : mvn -B package --file pom.xml
26
+
27
+ - name : Publish to GitHub Packages Apache Maven
28
+ run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml
29
+ env :
30
+ GITHUB_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change
1
+ # This workflow will build a Java project with Maven
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3
+
4
+ name : Java CI with Maven
5
+
6
+ on :
7
+ push :
8
+ branches : [ master, include_fallback ]
9
+ pull_request :
10
+ branches : [ master, include_fallback ]
11
+
12
+ jobs :
13
+ build :
14
+
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - name : Set up JDK 1.8
20
+ uses : actions/setup-java@v1
21
+ with :
22
+ java-version : 1.8
23
+ - name : Build with Maven
24
+ run : mvn -B package --file pom.xml
Original file line number Diff line number Diff line change 88
88
<dependency >
89
89
<groupId >junit</groupId >
90
90
<artifactId >junit</artifactId >
91
- <version >4.13</version >
91
+ <version >4.13.1 </version >
92
92
<scope >test</scope >
93
93
</dependency >
94
94
<dependency >
95
95
<groupId >org.json</groupId >
96
96
<artifactId >json</artifactId >
97
97
<version >20190722</version >
98
98
</dependency >
99
+ <dependency >
100
+ <groupId >com.contentstack.sdk</groupId >
101
+ <artifactId >java</artifactId >
102
+ <version >1.5.3</version >
103
+ <scope >test</scope >
104
+ </dependency >
99
105
</dependencies >
100
106
101
107
You can’t perform that action at this time.
0 commit comments