File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,16 @@ jobs:
10
10
build :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v3
13
+ - uses : actions/checkout@v4
14
+
14
15
- name : Set up JDK 11
15
- uses : actions/setup-java@v3
16
+ uses : actions/setup-java@v4
16
17
with :
17
18
java-version : ' 11'
18
19
distribution : ' temurin'
19
- cache : ' gradle'
20
+
21
+ - name : Setup Gradle
22
+ uses : gradle/actions/setup-gradle@v4
23
+
20
24
- name : Build with Gradle
21
25
run : ./gradlew clean build --no-daemon
Original file line number Diff line number Diff line change @@ -2,18 +2,23 @@ name: Publish package to the Maven Central Repository
2
2
3
3
on :
4
4
release :
5
- types : [created ]
5
+ types : [published ]
6
6
7
7
jobs :
8
8
publish :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - uses : actions/checkout@v2
11
+ - uses : actions/checkout@v4
12
+
12
13
- name : Set up Java
13
- uses : actions/setup-java@v2
14
+ uses : actions/setup-java@v4
14
15
with :
15
16
java-version : ' 11'
16
- distribution : ' adopt'
17
+ distribution : ' temurin'
18
+
19
+ - name : Setup Gradle
20
+ uses : gradle/actions/setup-gradle@v4
21
+
17
22
- name : Publish package
18
23
run : ./gradlew -Prelease publishToSonatype closeAndReleaseSonatypeStagingRepository
19
24
env :
You can’t perform that action at this time.
0 commit comments