File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 17
17
uses : actions/setup-java@v2
18
18
with :
19
19
java-version : 8
20
- distribution : ' adopt'
21
20
server-id : ossrh
22
- server-username : MAVEN_USERNAME
23
- server-password : MAVEN_PASSWORD
21
+ server-username : OSSRH_USERNAME
22
+ server-password : OSSRH_PASSWORD
24
23
gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
25
24
gpg-passphrase : MAVEN_GPG_PASSPHRASE
26
25
- name : Build with Maven
@@ -35,11 +34,11 @@ jobs:
35
34
- name : Submit code coverage
36
35
run : bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_SECRET }}
37
36
38
- - name : Publish package
37
+ - name : Publish to Apache Maven Central
39
38
if : ${{ startsWith(github.ref, 'refs/tags/v') }}
40
39
run : mvn -DskipTests --batch-mode deploy
41
40
env :
42
- MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
43
- MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
41
+ OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
42
+ OSSRH_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
44
43
MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
45
44
Original file line number Diff line number Diff line change 135
135
<groupId >org.apache.maven.plugins</groupId >
136
136
<artifactId >maven-gpg-plugin</artifactId >
137
137
<version >1.5</version >
138
- <configuration >
139
- <!-- Prevent gpg from using pinentry programs -->
140
- <gpgArguments >
141
- <arg >--batch</arg >
142
- <arg >--pinentry-mode</arg >
143
- <arg >loopback</arg >
144
- </gpgArguments >
145
- </configuration >
146
138
<executions >
147
139
<execution >
148
140
<id >sign-artifacts</id >
152
144
</goals >
153
145
</execution >
154
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 >
155
154
</plugin >
156
155
157
156
</plugins >
You can’t perform that action at this time.
0 commit comments