File tree Expand file tree Collapse file tree 1 file changed +20
-10
lines changed
Expand file tree Collapse file tree 1 file changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -17,21 +17,31 @@ jobs:
1717 runs-on : ubuntu-latest
1818 steps :
1919 - uses : actions/checkout@v3
20- - name : Set up JDK 11 for x64
20+ - name : Set up JDK 17 for x64
2121 uses : actions/setup-java@v3
2222 with :
2323 java-version : ' 17'
2424 distribution : ' adopt'
2525 architecture : x64
2626 cache : maven
27+
2728 - name : Build with Maven
2829 run : mvn -B package --file pom.xml
29- - name : Log coverage percentage
30- run : |
31- echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
32- echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
33- - name : Upload JaCoCo coverage report
34- uses : actions/upload-artifact@v4
35- with :
36- name : jacoco-report
37- path : target/site/jacoco/
30+
31+ - name : Set up Apache Maven Central
32+ uses : actions/setup-java@v2
33+ with : # running setup-java again overwrites the settings.xml
34+ java-version : 17
35+ distribution : ' adopt'
36+ server-id : ossrh
37+ server-username : OSSRH_USERNAME
38+ server-password : OSSRH_PASSWORD
39+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
40+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
41+
42+ - name : Publish to Apache Maven Central
43+ run : mvn -Prelease deploy
44+ env :
45+ OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
46+ OSSRH_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
47+ MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
You can’t perform that action at this time.
0 commit comments