@@ -19,34 +19,33 @@ jobs:
1919 runs-on : ubuntu-latest
2020
2121 steps :
22- - uses : actions/checkout@v3
23- - name : Set up JDK 17
24- uses : actions/setup-java@v3
25- with :
26- java-version : ' 17'
27- distribution : ' temurin'
28- cache : gradle
29- - name : Restore gradle.properties
30- env :
31- GRADLE_PROPERTIES : ${{ secrets.GRADLE_PROPERTIES }}
32- shell : bash
33- run : |
34- mkdir -p ~/.gradle/
35- echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV
36- echo "${GRADLE_PROPERTIES}" > ~/.gradle/gradle.properties
37- - name : Restore gpg key
38- env :
39- GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
40- shell : bash
41- run : |
42- mkdir /home/runner/.gnupg
43- echo -n "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode > /home/runner/.gnupg/secring.gpg
44- - name : Execute Gradle publish
45- run : ./gradlew clean build publish --refresh-dependencies --info
46- - name : Upload test reports
47- uses : actions/upload-artifact@v4
48- if : always()
49- with :
50- name : test-reports
51- path : " **/build/reports/*"
52- retention-days : 5
22+ - uses : actions/checkout@v5
23+ - name : Build Project
24+ uses : actions/setup-java@v5
25+ with :
26+ java-version : ' 17'
27+ distribution : ' temurin'
28+ - name : Restore gradle.properties
29+ env :
30+ GRADLE_PROPERTIES : ${{ secrets.GRADLE_PROPERTIES }}
31+ shell : bash
32+ run : |
33+ mkdir -p ~/.gradle/
34+ echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV
35+ echo "${GRADLE_PROPERTIES}" > ~/.gradle/gradle.properties
36+ - name : Restore gpg key
37+ env :
38+ GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
39+ shell : bash
40+ run : |
41+ mkdir /home/runner/.gnupg
42+ echo -n "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode > /home/runner/.gnupg/secring.gpg
43+ - name : Execute Gradle publish
44+ run : ./gradlew build --scan --no-daemon --console=plain
45+ - name : Upload test reports
46+ uses : actions/upload-artifact@v4
47+ if : always()
48+ with :
49+ name : test-reports
50+ path : " **/build/reports/*"
51+ retention-days : 5
0 commit comments