File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 java-version : ' 11'
1919 distribution : ' adopt'
2020 cache : maven
21- server-id : ossrh
21+ server-id : central
2222 server-username : MAVEN_USERNAME
2323 server-password : MAVEN_PASSWORD
2424 gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2727 - name : Deploy with Maven
2828 run : mvn -B clean deploy -Pci-cd
2929 env :
30- MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
31- MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
30+ MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
31+ MAVEN_PASSWORD : ${{ secrets.MAVEN_PASSWORD }}
3232 MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 115115 </execution >
116116 </executions >
117117 </plugin >
118+ <plugin >
119+ <groupId >org.sonatype.central</groupId >
120+ <artifactId >central-publishing-maven-plugin</artifactId >
121+ <version >0.8.0</version >
122+ <extensions >true</extensions >
123+ <configuration >
124+ <publishingServerId >central</publishingServerId >
125+ </configuration >
126+ </plugin >
118127 </plugins >
119128 </build >
120129
134143 <goals >
135144 <goal >sign</goal >
136145 </goals >
146+ <configuration >
147+ <!-- Prevent gpg from using pin entry programs.
148+ Fixes: gpg: signing failed: Inappropriate ioctl for device -->
149+ <gpgArguments >
150+ <arg >--pinentry-mode</arg >
151+ <arg >loopback</arg >
152+ </gpgArguments >
153+ </configuration >
137154 </execution >
138155 </executions >
139156 </plugin >
You can’t perform that action at this time.
0 commit comments