File tree Expand file tree Collapse file tree 3 files changed +14
-16
lines changed
Expand file tree Collapse file tree 3 files changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -21,20 +21,20 @@ jobs:
2121 uses : actions/checkout@v4
2222 with :
2323 token : ${{ secrets.GITHUB_TOKEN }}
24- - name : Set up JDK
24+ - name : Setup JDK
2525 uses : actions/setup-java@v4
2626 with :
2727 distribution : ' adopt'
2828 java-version : ${{ matrix.java }}
29+ - name : Setup Gradle
30+ uses : gradle/actions/setup-gradle@v4
2931 - name : Get the current version
3032 id : current_version
3133 run : |
3234 echo "$(cat gradle.properties | grep 'projectVersion=' | awk '{print $1}')" >> "$GITHUB_OUTPUT"
3335 - name : Generate Docs
3436 id : build
35- uses : gradle/actions/setup-gradle@v3
36- with :
37- arguments : docs
37+ run : ./gradlew docs
3838 - name : Deploy to GitHub Pages
3939 id : deployment
4040 uses : rainboyan/deploy-github-pages@v1.1.0
Original file line number Diff line number Diff line change @@ -24,16 +24,16 @@ jobs:
2424 uses : actions/checkout@v4
2525 with :
2626 token : ${{ secrets.GITHUB_TOKEN }}
27- - name : Set up JDK
27+ - name : Setup JDK
2828 uses : actions/setup-java@v4
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 -x integrationTest
36+ run : ./gradlew build -x test -x integrationTest
3737 publish :
3838 if : github.event_name == 'push'
3939 needs : ["build"]
4848 uses : actions/checkout@v4
4949 with :
5050 token : ${{ secrets.GITHUB_TOKEN }}
51- - name : Set up JDK 11
51+ - name : Setup JDK
5252 uses : actions/setup-java@v4
5353 with :
5454 distribution : ' adopt'
5959 run : echo $SECRING_FILE | base64 -d > ${{ github.workspace }}/secring.gpg
6060 - name : Publish to Sonatype OSSRH
6161 id : publish
62- uses : gradle/actions/setup-gradle@v3
6362 env :
6463 SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
6564 SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
6867 SIGNING_KEY : ${{ secrets.SIGNING_KEY }}
6968 SIGNING_PASSPHRASE : ${{ secrets.SIGNING_PASSPHRASE }}
7069 SECRING_FILE : ${{ secrets.SECRING_FILE }}
71- with :
72- arguments : -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg :plugin:publishToSonatype closeAndReleaseSonatypeStagingRepository
70+ run : ./gradlew -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg :plugin:publishToSonatype closeAndReleaseSonatypeStagingRepository
Original file line number Diff line number Diff line change @@ -37,11 +37,13 @@ jobs:
3737 with :
3838 token : ${{ secrets.GITHUB_TOKEN }}
3939 - uses : gradle/actions/wrapper-validation@v3
40- - name : Set up JDK
40+ - name : Setup JDK
4141 uses : actions/setup-java@v4
4242 with :
4343 distribution : ' adopt'
4444 java-version : ${{ matrix.java }}
45+ - name : Setup Gradle
46+ uses : gradle/actions/setup-gradle@v4
4547 - name : Extract Target Branch
4648 id : extract_branch
4749 run : |
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