File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,11 @@ jobs:
2929 with :
3030 distribution : ' adopt'
3131 java-version : ${{ matrix.java }}
32+ - name : Setup Gradle
33+ uses : gradle/actions/setup-gradle@v4
3234 - name : Run Build
3335 id : build
34- uses : gradle/actions/setup-gradle@v3
35- with :
36- arguments : build -x test
36+ run : ./gradlew build -x test
3737 publish :
3838 if : github.event_name == 'push'
3939 needs : ["build"]
5757 env :
5858 SECRING_FILE : ${{ secrets.SECRING_FILE }}
5959 run : echo $SECRING_FILE | base64 -d > ${{ github.workspace }}/secring.gpg
60+ - name : Setup Gradle
61+ uses : gradle/actions/setup-gradle@v4
6062 - name : Publish to Sonatype OSSRH
6163 id : publish
62- uses : gradle/actions/setup-gradle@v3
6364 env :
6465 SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
6566 SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
6869 SIGNING_KEY : ${{ secrets.SIGNING_KEY }}
6970 SIGNING_PASSPHRASE : ${{ secrets.SIGNING_PASSPHRASE }}
7071 SECRING_FILE : ${{ secrets.SECRING_FILE }}
71- with :
72- arguments : -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg :plugin:publishToSonatype closeAndReleaseSonatypeStagingRepository
72+ run : ./gradlew -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg :plugin:publishToSonatype closeAndReleaseSonatypeStagingRepository
Original file line number Diff line number Diff line change @@ -57,10 +57,11 @@ jobs:
5757 env :
5858 SECRING_FILE : ${{ secrets.SECRING_FILE }}
5959 run : echo $SECRING_FILE | base64 -d > ${{ github.workspace }}/secring.gpg
60+ - name : Setup Gradle
61+ uses : gradle/actions/setup-gradle@v4
6062 - name : Publish to Sonatype OSSRH
6163 id : publish
6264 if : steps.secring.outcome == 'success'
63- uses : gradle/actions/setup-gradle@v3
6465 env :
6566 SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
6667 SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
6970 SIGNING_KEY : ${{ secrets.SIGNING_KEY }}
7071 SIGNING_PASSPHRASE : ${{ secrets.SIGNING_PASSPHRASE }}
7172 SECRING_FILE : ${{ secrets.SECRING_FILE }}
72- with :
73- arguments : -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg :plugin:publishToSonatype closeAndReleaseSonatypeStagingRepository
73+ run : ./gradlew -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg :plugin:publishToSonatype closeAndReleaseSonatypeStagingRepository
You can’t perform that action at this time.
0 commit comments