File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,11 +51,12 @@ jobs:
5151 distribution : ' adopt'
5252
5353 - name : Import GPG key
54- run : echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import
54+ run : echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import --passphrase "$GPG_PASSPHRASE"
5555 env :
5656 # To generate a new GPG key run the following command in your local terminal:
5757 # gpg --export-secret-keys -a "<key_id>" | base64
5858 GPG_SIGNING_KEY : ${{ secrets.GPG_SIGNING_KEY }}
59+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
5960 - name : Log GPG keys
6061 run : gpg --list-secret-keys --keyid-format LONG
6162
Original file line number Diff line number Diff line change 11<settings >
22 <servers >
33 <server >
4- <id >ossrh </id >
4+ <id >central </id >
55 <username >${env.OSSRH_JIRA_USERNAME}</username >
66 <password >${env.OSSRH_JIRA_PASSWORD}</password >
77 </server >
Original file line number Diff line number Diff line change 283283 </executions >
284284 </plugin >
285285 <plugin >
286- <groupId >org.sonatype.plugins </groupId >
287- <artifactId >nexus-staging -maven-plugin</artifactId >
288- <version >1.6.8 </version >
286+ <groupId >org.sonatype.central </groupId >
287+ <artifactId >central-publishing -maven-plugin</artifactId >
288+ <version >0.8.0 </version >
289289 <extensions >true</extensions >
290290 <configuration >
291- <serverId >ossrh</serverId >
292- <nexusUrl >https://oss.sonatype.org/</nexusUrl >
293- <autoReleaseAfterClose >true</autoReleaseAfterClose >
291+ <publishingServerId >central</publishingServerId >
292+ <autoPublish >true</autoPublish >
294293 </configuration >
295294 </plugin >
296295 <plugin >
You can’t perform that action at this time.
0 commit comments