File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ pull_request :
8+ branches :
9+ - main
710
811jobs :
912 deploy :
@@ -16,15 +19,16 @@ jobs:
1619 distribution : ' temurin'
1720 java-version : ' 17'
1821 cache : maven
19- server-id : central
22+ server-id : central # Value of the distributionManagement/repository/id field of the pom.xml
2023 server-username : SONATYPE_USERNAME
2124 server-password : SONATYPE_PASSWORD
22- gpg-private-key : GPG_PRIVATE_KEY
23- gpg-passphrase : GPG_PASSPHRASE
25+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }} # has to be read directly from secrets
26+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
27+ - name : gpg list
28+ run : gpg --list-secret-keys --keyid-format=long
2429 - name : Deploy snapshot
25- run : mvn -ntp clean deploy -P release
30+ run : mvn -Dmaven.test.skip=true - ntp -B clean deploy -P release
2631 env :
2732 SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
2833 SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
29- GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
30- GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
34+ MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
You can’t perform that action at this time.
0 commit comments