File tree Expand file tree Collapse file tree 2 files changed +99
-0
lines changed Expand file tree Collapse file tree 2 files changed +99
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ name : Integration-Core
4
+
5
+ on :
6
+ push :
7
+ paths-ignore :
8
+ - ' docs/**'
9
+ - ' **/*.md'
10
+ - ' **/*.rst'
11
+ branches :
12
+ - master
13
+ - ' [0-9].*'
14
+ pull_request :
15
+ branches :
16
+ - master
17
+ - ' [0-9].*'
18
+ schedule :
19
+ - cron : ' 0 1 * * *' # nightly build
20
+ workflow_dispatch :
21
+
22
+ jobs :
23
+
24
+ build :
25
+ name : Build and Test Core
26
+ runs-on : ubuntu-latest
27
+ defaults :
28
+ run :
29
+ working-directory : ./core
30
+ steps :
31
+ - uses : actions/checkout@v2
32
+ - name : Set up publishing to maven central
33
+ uses : actions/setup-java@v2
34
+ with :
35
+ java-version : ' 8'
36
+ distribution : ' temurin'
37
+ - name : Cache dependencies
38
+ uses : actions/cache@v2
39
+ with :
40
+ path : |
41
+ ~/.m2/repository
42
+ /var/cache/apt
43
+ key : entraid-${{hashFiles('**/pom.xml')}}
44
+ - name : Maven offline
45
+ run : |
46
+ mvn -q dependency:go-offline
47
+ - name : Build docs
48
+ run : |
49
+ mvn javadoc:jar
50
+ - name : Build with Maven
51
+ run : mvn compile
52
+ - name : Test with Maven
53
+ run : mvn test
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ name : Publish Snapshot-Core
4
+
5
+ on :
6
+ push :
7
+ branches :
8
+ - master
9
+ - ' [0-9].x'
10
+ workflow_dispatch :
11
+
12
+ jobs :
13
+
14
+ snapshot :
15
+ name : Deploy Snapshot-Core
16
+ runs-on : ubuntu-latest
17
+ defaults :
18
+ run :
19
+ working-directory : ./core
20
+ steps :
21
+ - uses : actions/checkout@v2
22
+ - name : Set up publishing to maven central
23
+ uses : actions/setup-java@v2
24
+ with :
25
+ java-version : ' 8'
26
+ distribution : ' temurin'
27
+ server-id : ossrh
28
+ server-username : MAVEN_USERNAME
29
+ server-password : MAVEN_PASSWORD
30
+ - name : Cache dependencies
31
+ uses : actions/cache@v2
32
+ with :
33
+ path : |
34
+ ~/.m2/repository
35
+ /var/cache/apt
36
+ key : core-${{hashFiles('**/pom.xml')}}
37
+ - name : mvn offline
38
+ run : |
39
+ mvn -q dependency:go-offline
40
+ - name : deploy
41
+ run : |
42
+ mvn --no-transfer-progress \
43
+ -DskipTests deploy
44
+ env :
45
+ MAVEN_USERNAME : ${{secrets.OSSH_USERNAME}}
46
+ MAVEN_PASSWORD : ${{secrets.OSSH_TOKEN}}
You can’t perform that action at this time.
0 commit comments