File tree Expand file tree Collapse file tree 4 files changed +42
-4
lines changed Expand file tree Collapse file tree 4 files changed +42
-4
lines changed Original file line number Diff line number Diff line change 15
15
push :
16
16
branches :
17
17
- master
18
- - v7
19
- - v6
20
18
pull_request :
21
19
types : [ opened, synchronize, reopened ]
22
20
branches :
23
21
- master
22
+ - v7
23
+ - v6
24
24
schedule :
25
25
- cron : ' 0 0 * * *'
26
26
Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- master
7
- - v7
8
- - v6
9
7
pull_request :
10
8
types : [ opened, synchronize, reopened ]
11
9
branches :
12
10
- master
11
+ - v7
12
+ - v6
13
13
14
14
jobs :
15
15
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ verify :
8
+ timeout-minutes : 20
9
+ runs-on : ubuntu-latest
10
+
11
+ strategy :
12
+ fail-fast : false
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - name : Set up JDK
17
+ uses : actions/setup-java@v3
18
+ with :
19
+ java-version : ' 8'
20
+ distribution : ' adopt'
21
+ cache : ' maven'
22
+ server-id : ossrh
23
+ server-username : MAVEN_USERNAME
24
+ server-password : MAVEN_CENTRAL_TOKEN
25
+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
26
+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
27
+ - name : Publish to Apache Maven Central
28
+ run : mvn deploy -Ddeploy -Dmaven.test.skip=true
29
+ env :
30
+ MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
31
+ MAVEN_CENTRAL_TOKEN : ${{ secrets.OSSRH_PASSWORD }}
32
+ MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 241
241
<groupId >org.apache.maven.plugins</groupId >
242
242
<artifactId >maven-gpg-plugin</artifactId >
243
243
<version >3.0.1</version >
244
+ <configuration >
245
+ <gpgArguments >
246
+ <arg >--pinentry-mode</arg >
247
+ <arg >loopback</arg >
248
+ </gpgArguments >
249
+ </configuration >
244
250
<executions >
245
251
<execution >
246
252
<id >sign-artifacts</id >
You can’t perform that action at this time.
0 commit comments