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 1515 push :
1616 branches :
1717 - master
18- - v7
19- - v6
2018 pull_request :
2119 types : [ opened, synchronize, reopened ]
2220 branches :
2321 - master
22+ - v7
23+ - v6
2424 schedule :
2525 - cron : ' 0 0 * * *'
2626
Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - master
7- - v7
8- - v6
97 pull_request :
108 types : [ opened, synchronize, reopened ]
119 branches :
1210 - master
11+ - v7
12+ - v6
1313
1414jobs :
1515
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 241241 <groupId >org.apache.maven.plugins</groupId >
242242 <artifactId >maven-gpg-plugin</artifactId >
243243 <version >3.0.1</version >
244+ <configuration >
245+ <gpgArguments >
246+ <arg >--pinentry-mode</arg >
247+ <arg >loopback</arg >
248+ </gpgArguments >
249+ </configuration >
244250 <executions >
245251 <execution >
246252 <id >sign-artifacts</id >
You can’t perform that action at this time.
0 commit comments