File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change 1
- name : Build
1
+ name : Java CI with Maven
2
2
3
3
on :
4
4
push :
5
- branches : [main]
5
+ branches : [ " main" ]
6
6
pull_request :
7
- branches : [main]
7
+ branches : [ " main" ]
8
8
9
9
jobs :
10
10
build :
11
+
11
12
runs-on : ubuntu-latest
12
13
13
14
steps :
14
15
- uses : actions/checkout@v4
15
16
- name : Set up JDK 17
16
- uses : actions/setup-java@v3
17
+ uses : actions/setup-java@v4
17
18
with :
18
- java-version : 17
19
+ java-version : ' 17'
20
+ distribution : ' temurin'
21
+ cache : maven
19
22
- name : Build with Maven
20
- run : mvn -B package --file pom.xml
21
- - name : Upload artifact
22
- uses : actions/upload-artifact@v3
23
- with :
24
- name : CommandFramework
25
- path : target/**
26
- if : " !contains(github.event.head_commit.message, 'README')"
23
+ run : mvn -B package --file pom.xml
You can’t perform that action at this time.
0 commit comments