File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -23,29 +23,31 @@ jobs:
2323 steps :
2424 - uses : actions/checkout@v4
2525
26+ - name : Set up Java
27+ uses : actions/setup-java@v4
28+ with :
29+ java-version : ' 17'
30+ distribution : ' temurin'
31+
32+ - name : Setup Gradle
33+ uses : gradle/actions/setup-gradle@v4
34+
2635 - name : Setup GPG key information
2736 run : |
28- mkdir -p ~/.gradle
37+ mkdir -p ~/.gradle ~/.gnupg
2938 echo "signing.gnupg.homeDir=/home/runner/.gnupg" >> ~/.gradle/gradle.properties
3039 echo "signing.gnupg.executable=gpg" >> ~/.gradle/gradle.properties
3140 echo "signing.gnupg.keyName=ABC48776" >> ~/.gradle/gradle.properties
3241 echo "signing.gnupg.passphrase=${GPG_SIGNING_KEY_PW}" >> ~/.gradle/gradle.properties
42+ echo "no-tty" >> ~/.gnupg/gpg.conf >> ~/.gradle/gradle.properties
3343 env :
3444 GPG_SIGNING_KEY_PW : ${{ secrets.GPG_PASSPHRASE }}
3545
36- - name : Set up Java
37- uses : actions/setup-java@v4
38- with :
39- java-version : ' 17'
40- distribution : ' temurin'
41-
42- - name : Setup Gradle
43- uses : gradle/actions/setup-gradle@v4
46+ - name : Build package
47+ run : ./gradlew clean build
4448
4549 - name : Publish package
46- run : ./gradlew publishToSonatype closeSonatypeStagingRepository -PsonatypeUsername=2tezCY9e -PsonatypePassword=RE4rqMPUlTCY2ZWXE1PA1jzCBh9HBdVYoGPUlDos2DNh
50+ run : ./gradlew publishToSonatype closeSonatypeStagingRepository
4751 env :
4852 SONATYPE_USERNAME : ${{ inputs.sonatypeUsername }}
4953 SONATYPE_PASSWORD : ${{ inputs.sonatypePassword }}
50- GPG_SIGNING_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
51- GPG_SIGNING_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
You can’t perform that action at this time.
0 commit comments