Skip to content

Commit 1ffad91

Browse files
committed
updated Github workflow
1 parent f8b024c commit 1ffad91

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@ name: Build and Release Java Application
33
on:
44
push:
55
tags:
6-
- "release_*" # Trigger on tags with prefix release_
6+
- "release_*"
77

88
jobs:
99
build_and_release:
10-
runs-on: ubuntu-latest # Specifies the runner environment
10+
runs-on: ubuntu-latest
1111

1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v3 # Checks out the repository code under $GITHUB_WORKSPACE
14+
uses: actions/checkout@v4
1515

16-
- name: Set up JDK 17
16+
- name: Set up JDK 21
1717
uses: actions/setup-java@v3
1818
with:
19-
java-version: "17"
20-
distribution: "temurin" # AdoptOpenJDK builds from Eclipse Foundation
19+
java-version: "21"
20+
distribution: "temurin"
21+
cache: gradle
2122

2223
- name: Set execute permissions for Gradle wrapper
2324
run: chmod +x ./gradlew

0 commit comments

Comments
 (0)