Skip to content

Commit b7fa2bd

Browse files
authored
add setup actions to release (#36)
1 parent 105dbe0 commit b7fa2bd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v3
1616
with:
1717
fetch-depth: 0
18-
18+
1919
- uses: actions/github-script@v6
2020
with:
2121
script: |
@@ -24,6 +24,15 @@ jobs:
2424
const version = context.payload.pull_request.head.ref.split('-')[1]
2525
core.exportVariable('VERSION', version)
2626
27+
- name: Setup JDK 17
28+
uses: actions/setup-java@v5.1.0
29+
with:
30+
distribution: 'corretto'
31+
java-version: '17'
32+
33+
- name: Setup Gradle
34+
uses: gradle/actions/setup-gradle@v4
35+
2736
- name: Publish to MavenCentral
2837
run: |
2938
./gradlew publishToSonatype --no-daemon --max-workers 1 closeAndReleaseSonatypeStagingRepository

0 commit comments

Comments
 (0)