1- name : Publish to Maven Central
2-
3- on :
4- push :
5- tags :
6- - " [0-9]+.[0-9]+.[0-9]+*"
7-
8- jobs :
9- publish :
10- name : Publish to Sonatype
11- runs-on : ubuntu-latest
12- steps :
13- - name : Checkout
14- uses : actions/checkout@v4
15-
16- - name : Configure JDK
17- uses : actions/setup-java@v4
18- with :
19- distribution : ' temurin'
20- java-version : ' 17'
21-
22- - name : Setup Gradle
23- uses : gradle/actions/setup-gradle@v4
24-
25- - name : Upload Artifacts
26- # gradle.properties must be set with SONATYPE_HOST=CENTRAL_PORTAL and RELEASE_SIGNING_ENABLED=true
27- run : ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
28- env :
29- ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }}
30- ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}
31- ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }}
32- ORG_GRADLE_PROJECT_signingInMemoryKeyId : ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyId }}
33- ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }}
1+ # name: Publish to Maven Central
2+ #
3+ # on:
4+ # push:
5+ # tags:
6+ # - "[0-9]+.[0-9]+.[0-9]+*"
7+ #
8+ # jobs:
9+ # publish:
10+ # name: Publish to Sonatype
11+ # runs-on: ubuntu-latest
12+ # steps:
13+ # - name: Checkout
14+ # uses: actions/checkout@v4
15+ #
16+ # - name: Configure JDK
17+ # uses: actions/setup-java@v4
18+ # with:
19+ # distribution: 'temurin'
20+ # java-version: '17'
21+ #
22+ # - name: Setup Gradle
23+ # uses: gradle/actions/setup-gradle@v4
24+ #
25+ # - name: Upload Artifacts
26+ # # gradle.properties must be set with SONATYPE_HOST=CENTRAL_PORTAL and RELEASE_SIGNING_ENABLED=true
27+ # run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
28+ # env:
29+ # ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }}
30+ # ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}
31+ # ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }}
32+ # ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyId }}
33+ # ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }}
0 commit comments