This repository was archived by the owner on Sep 3, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed
Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -10,24 +10,35 @@ jobs:
1010 uses : actions/checkout@v4
1111 with :
1212 fetch-depth : 0
13-
1413 - name : Setup Java
15- uses : actions/setup-java@v3
14+ uses : actions/setup-java@v4
1615 with :
1716 distribution : temurin
1817 java-version : |
1918 11
2019 17
2120 21
2221
22+ - name : Validate Gradle Wrapper
23+ uses : gradle/actions/wrapper-validation@v4
2324 - name : Setup Gradle
24- uses : gradle/gradle-build-action@v2
25+ uses : gradle/actions/setup-gradle@v4
2526 - name : Gradle publish
2627 env :
27- OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
28- OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
28+ BUNDLE_REPO : .bundle
2929 ORG_GRADLE_PROJECT_signingKeyId : ${{ secrets.PGP_SIGNING_KEY_ID }}
3030 ORG_GRADLE_PROJECT_signingKey : ${{ secrets.PGP_SIGNING_KEY }}
3131 ORG_GRADLE_PROJECT_signingPassphrase : ${{ secrets.PGP_SIGNING_PASSPHRASE }}
3232 GRADLE_OPTS : " -Dorg.gradle.project.gradle.publish.key=${{ secrets.GRADLE_PLUGIN_KEY }} -Dorg.gradle.project.gradle.publish.secret=${{ secrets.GRADLE_PLUGIN_SECRET }}"
33- run : ./gradlew publishAllPublicationsToCentralReleasesRepository
33+ run : ./gradlew publishAllPublicationsToCentralRepository --stacktrace
34+ - name : Create bundle
35+ run : |
36+ cd .bundle
37+ zip -r ../bundle.zip *
38+ - name : Publish to Maven Central
39+ uses : ajoberstar/maven-central-publish@main
40+ with :
41+ username : ${{ secrets.CENTRAL_USERNAME }}
42+ token : ${{ secrets.CENTRAL_TOKEN }}
43+ bundle-path : bundle.zip
44+ name : ${{ github.repository }}@${{ github.ref }}
You can’t perform that action at this time.
0 commit comments