File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 build :
77 runs-on : ubuntu-latest
88 steps :
9- - name : Step 1 - Checkout main branch from GitHub
10- uses : actions/checkout@v4.1.7
11- - name : Step 2 - Set up JDK 17
12- uses : actions/setup-java@v4.2.1
9+ - name : Step 1 - Checkout main branch from GitHub
10+ uses : actions/checkout@v4
11+
12+ - name : Step 2 - Set up JDK 21
13+ uses : actions/setup-java@v4
1314 with :
14- java-version : 17
15+ java-version : 21
1516 distribution : ' corretto'
17+ cache : ' maven'
18+
1619 - name : Step 3 - Build Maven Project
1720 run : |
1821 mvn -B package --file pom.xml
1922 mkdir staging && cp target/*.jar staging
20- - name : Step 4 - Set up a cache for Maven
21- uses : actions/cache@v4.0.2
22- with :
23- path : ~/.m2
24- key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
25- restore-keys : ${{ runner.os }}-m2
26- - name : Step 5 - Persist workflow data as artificats
27- uses : actions/upload-artifact@v4.3.4
23+
24+ - name : Step 4 - Persist workflow data as artifacts
25+ uses : actions/upload-artifact@v4
2826 with :
2927 name : ' BlueCore'
3028 path : staging
31- retention-days : 30
29+ retention-days : 30
You can’t perform that action at this time.
0 commit comments