Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit ffcffda

Browse files
committed
upgraded github action build config
1 parent be9b555 commit ffcffda

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/maven-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- name: Set up JDK 17
16-
uses: actions/setup-java@v1
16+
uses: actions/setup-java@v3
1717
with:
18+
distribution: 'zulu'
1819
java-version: 17
20+
cache: 'maven'
1921
- name: Build with Maven
2022
env:
2123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/maven-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
2424
- name: Set up JDK 17
25-
uses: actions/setup-java@v1
25+
uses: actions/setup-java@v3
2626
with:
27+
distribution: 'zulu'
2728
java-version: 17
29+
cache: 'maven'
30+
check-latest: true
2831
- name: Publish with Maven
2932
env:
3033
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)