File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 22
22
server-username : OSSRH_USERNAME
23
23
server-password : OSSRH_PASSWORD
24
24
gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
25
- gpg-passphrase : ${{ secrets. MAVEN_GPG_PASSPHRASE }}
25
+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
26
26
- name : Build with Maven
27
27
run : mvn -B compile --file pom.xml
28
28
37
37
38
38
- name : Publish to Apache Maven Central
39
39
if : ${{ startsWith(github.ref, 'refs/tags/v') }}
40
- run : mvn -DskipTests --batch-mode deploy -Dgpg.passphrase=${{ secrets.MAVEN_GPG_PASSPHRASE }}
40
+ run : mvn -DskipTests deploy
41
41
env :
42
42
OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
43
43
OSSRH_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
Original file line number Diff line number Diff line change 144
144
</goals >
145
145
</execution >
146
146
</executions >
147
+ <configuration >
148
+ <!-- Prevent gpg from using pinentry programs -->
149
+ <gpgArguments >
150
+ <arg >--pinentry-mode</arg >
151
+ <arg >loopback</arg >
152
+ </gpgArguments >
153
+ </configuration >
147
154
</plugin >
148
155
149
156
</plugins >
You can’t perform that action at this time.
0 commit comments