File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change 70
70
run : chmod +x gradlew
71
71
72
72
- name : Upload Artifacts to Maven Central
73
- run : ./gradlew publishAllPublicationsToMavenCentralRepository --no-daemon --no-parallel
73
+ run : ./gradlew publishToMavenCentral --no-daemon --no-parallel
74
74
env :
75
- ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_USERNAME }}
76
- ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.SONATYPE_PASSWORD }}
75
+ ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.MAVEN_CENTRAL_USERNAME }}
76
+ ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
77
77
ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.SIGNING_KEY }}
78
- ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.SIGNING_PASSWORD }}
79
-
80
- - name : Retrieve Version
81
- run : |
82
- echo "VERSION_NAME=$(cat gradle.properties | grep -w "VERSION_NAME" | cut -d'=' -f2)" >> $GITHUB_ENV
83
-
84
- - name : Publish Release
85
- run : ./gradlew closeAndReleaseRepository --no-daemon --no-parallel
86
- if : " !endsWith(env.VERSION_NAME, '-SNAPSHOT')"
87
- env :
88
- ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_USERNAME }}
89
- ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.SONATYPE_PASSWORD }}
78
+ ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.SIGNING_PASSWORD }}
You can’t perform that action at this time.
0 commit comments