Skip to content

Commit 20d40b7

Browse files
authored
Merge pull request #57 from ExNDY/#56-publish-scripts
#56 updated publish action
2 parents 8be1615 + b0b2190 commit 20d40b7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ jobs:
2626
with:
2727
java-version: 17
2828
distribution: zulu
29+
- name: Prebuild library
30+
run: ./gradlew publishToMavenLocal
2931
- name: Publish
30-
# gradle configuration cache not supported in https://github.com/gradle-nexus/publish-plugin
31-
run: ./gradlew publish --no-configuration-cache
32+
# Publish plugin lacks configuration cache support:
33+
# https://github.com/gradle-nexus/publish-plugin/issues/221
34+
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --no-configuration-cache
3235

3336
release:
3437
name: Create release

0 commit comments

Comments
 (0)