Skip to content

Commit e89b304

Browse files
committed
update publish config
1 parent ea0884f commit e89b304

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v1
24-
- name: Set up JDK 11
24+
- name: Set up JDK 17
2525
uses: actions/setup-java@v1
2626
with:
27-
java-version: 11
28-
- name: Publish library
29-
run: ./gradlew publish
27+
java-version: 17
28+
- name: Prebuild library
29+
run: ./gradlew publishToMavenLocal
30+
- name: Publish
31+
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
32+
3033
release:
3134
name: Create release
3235
needs: publish

0 commit comments

Comments
 (0)