File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change
1
+
Original file line number Diff line number Diff line change 1
- name : Publish Snapshot
1
+ name : Development
2
+
2
3
on :
3
4
push :
4
5
branches : [development]
6
+
5
7
jobs :
6
- publish :
8
+ deploy :
7
9
runs-on : ubuntu-latest
8
10
steps :
9
11
- uses : actions/checkout@v2
10
- - name : Set up Java
12
+ - name : Setup Java 11
11
13
uses : actions/setup-java@v2
12
14
with :
13
- java-version : ' 8 '
15
+ java-version : ' 11 '
14
16
distribution : ' adopt'
15
17
server-id : hypera-snapshots
16
18
server-username : MAVEN_USERNAME
17
19
server-password : MAVEN_PASSWORD
18
- - name : Publish package
20
+ - name : Cache Maven Dependencies
21
+
22
+ with :
23
+ path : ~/.m2
24
+ key : ubuntu-latest-m2-${{ hashFiles('**/pom.xml') }}
25
+ restore-keys : ubuntu-latest-m2
26
+ - name : Build with Maven
27
+ run : mvn -B package --file pom.xml
28
+ - name : Deploy Maven package
19
29
run : mvn --batch-mode deploy
20
30
env :
21
31
MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
Original file line number Diff line number Diff line change 10
10
- name : Set up Java
11
11
uses : actions/setup-java@v2
12
12
with :
13
- java-version : ' 8 '
13
+ java-version : ' 11 '
14
14
distribution : ' adopt'
15
15
server-id : hypera-releases
16
16
server-username : MAVEN_USERNAME
You can’t perform that action at this time.
0 commit comments