File tree Expand file tree Collapse file tree 1 file changed +8
-19
lines changed
Expand file tree Collapse file tree 1 file changed +8
-19
lines changed Original file line number Diff line number Diff line change @@ -14,29 +14,18 @@ jobs:
1414 - name : Checkout
1515 uses : actions/checkout@v4
1616
17- - name : Set up Temurin JDK 8
17+ - name : Set up Temurin JDK 8 (with Maven server and GPG)
1818 uses : actions/setup-java@v4
1919 with :
2020 distribution : ' temurin'
2121 java-version : ' 8'
22-
23- - name : Import GPG key
24- uses : crazy-max/ghaction-import-gpg@v6
25- with :
26- gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
27- passphrase : ${{ secrets.GPG_PASSPHRASE }}
28-
29- - name : Configure Maven settings.xml
30- uses : s4u/maven-settings-action@v3
31- with :
32- servers : |
33- [
34- {
35- "id": "central",
36- "username": "${{ secrets.CENTRAL_USERNAME }}",
37- "password": "${{ secrets.CENTRAL_PASSWORD }}"
38- }
39- ]
22+ # Configure server credentials for Maven Central Publishing
23+ server-id : ' central'
24+ server-username : ${{ secrets.CENTRAL_USERNAME }}
25+ server-password : ${{ secrets.CENTRAL_PASSWORD }}
26+ # Import GPG key for signing
27+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
28+ gpg-passphrase : ${{ secrets.GPG_PASSPHRASE }}
4029
4130 - name : Build and publish (Central Publishing)
4231 run : mvn -P release -DskipTests -B -V clean deploy
You can’t perform that action at this time.
0 commit comments