Skip to content

Commit fbd3327

Browse files
committed
publish CI
1 parent 55c256e commit fbd3327

File tree

4 files changed

+42
-4
lines changed

4 files changed

+42
-4
lines changed

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ on:
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

.github/workflows/maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ on:
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

1414
jobs:
1515

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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 }}

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,12 @@
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>

0 commit comments

Comments
 (0)