Skip to content

Commit 7f3f785

Browse files
committed
Update GitHub workflow
1 parent f03025d commit 7f3f785

2 files changed

Lines changed: 13 additions & 17 deletions

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,24 @@ jobs:
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

.idea/workspace.xml

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)