File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11name : Publish Release
22
33on :
4+ workflow_dispatch :
45 push :
56 tags :
67 - ' v*'
3031 run : |
3132 echo "VERSION_NAME=$(cat gradle.properties | grep -w "VERSION_NAME" | cut -d'=' -f2)" >> $GITHUB_ENV
3233
33- - name : Upload release
34- run : ./gradlew publishAllPublicationsToMavenCentralRepository --no-daemon --no-parallel
34+ - name : Upload and Publish artifacts
35+ run : ./gradlew publishToMavenCentral --no-configuration-cache
3536 if : ${{ !endsWith(env.VERSION_NAME, '-SNAPSHOT') }}
3637 env :
3738 ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.SIGNING_PRIVATE_KEY }}
3839 ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.SIGNING_PASSWORD }}
39-
40- - name : Publish release
41- run : ./gradlew closeAndReleaseRepository --no-daemon --no-parallel
42- if : ${{ !endsWith(env.VERSION_NAME, '-SNAPSHOT') }}
Original file line number Diff line number Diff line change @@ -25,3 +25,7 @@ val metadataDetector = objects.newInstance(DefaultJvmMetadataDetector::class.jav
2525tasks.test {
2626 useJUnitPlatform()
2727}
28+
29+ mavenPublishing {
30+ publishToMavenCentral(true )
31+ }
You can’t perform that action at this time.
0 commit comments