@@ -13,32 +13,28 @@ jobs:
1313 MAVEN_OPTS : -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
1414 steps :
1515 - uses : actions/checkout@v2
16- - uses : actions/setup-java@v2
17- with :
18- distribution : ' adopt'
19- java-version : 8
20- - uses : s4u/maven-settings-action@v2
21- with :
22- servers : ' [{"id": "vpro-ossrh", "username": "vpro", "password": "${{secrets.SONATYPE_PASSWORD}}"}]'
23- - uses : crazy-max/ghaction-import-gpg@v3
16+ - uses : actions/setup-java@v3
2417 with :
18+ distribution : ' temurin'
19+ java-version : 11
20+ server-id : vpro-ossrh
21+ server-username : SONATYPE_USERNAME
22+ server-password : SONATYPE_PASSWORD
2523 gpg-private-key : ${{ secrets.GPG_SECRET_KEY }}
26- passphrase : ${{ secrets.GPG_SECRET_KEY_PASSPHRASE }}
27- - uses : actions/cache@v1
28- with :
29- path : ~/.m2/repository
30- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
31- restore-keys : |
32- ${{ runner.os }}-maven-
24+ gpg-passphrase : GPG_SECRET_KEY_PASSPHRASE
25+ cache : maven
3326 - name : Build with Maven
3427 run : mvn -B -Pdeploy,ossrh -U deploy
28+ env :
29+ SONATYPE_USERNAME : vpro
30+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
31+ GPG_SECRET_KEY_PASSPHRASE : ${{ secrets.GPG_SECRET_KEY_PASSPHRASE }}
3532 # continue-on-error: true
36- - name : Publish Test Report
37- uses : scacap/action-surefire-report@v1
38- if : ${{ success() || failure()}}
3933 - name : Publish to codecov
40- run : bash <(curl -s https://codecov.io/bash)
34+ uses : codecov/codecov-action@v3
35+ continue-on-error : true
4136 if : github.ref == 'refs/heads/main'
42-
43-
44-
37+ - name : Publish Unit Test Results
38+ uses : EnricoMi/publish-unit-test-result-action@v2.3.0
39+ if : ${{ success() || failure()}}
40+
0 commit comments