Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit 160741b

Browse files
committed
retry maven central
1 parent 8ba8dda commit 160741b

File tree

3 files changed

+43
-7
lines changed

3 files changed

+43
-7
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,22 @@ jobs:
1010
- name: 📦 Prepate Git Repo
1111
uses: actions/checkout@v2
1212

13+
- name: 🔐 Install GPG secret key
14+
run: |
15+
cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
16+
1317
- name: ☕ Install OpenJDK
1418
uses: AdoptOpenJDK/install-jdk@v1
1519
with:
1620
version: '11'
1721
architecture: x64
1822

19-
- name: 🚀 Deploy to Maven
20-
uses: samuelmeuli/action-maven-publish@v1
21-
with:
22-
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
23-
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
24-
nexus_username: ${{ secrets.OSSRH_USERNAME }}
25-
nexus_password: ${{ secrets.OSSRH_TOKEN }}
23+
- name: 🚀 Deploy to Maven Central
24+
run: mvn -B deploy
25+
env:
26+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
27+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
28+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
2629

2730
- name: 🚀 Deploy to Releases
2831
uses: AButler/[email protected]

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@
112112
<goals>
113113
<goal>sign</goal>
114114
</goals>
115+
<configuration>
116+
<gpgArguments>
117+
<arg>--pinentry-mode</arg>
118+
<arg>loopback</arg>
119+
</gpgArguments>
120+
</configuration>
115121
</execution>
116122
</executions>
117123
</plugin>

settings.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
5+
6+
<servers>
7+
<server>
8+
<id>ossrh</id>
9+
<username>${env.MAVEN_USERNAME}</username>
10+
<password>${env.MAVEN_PASSWORD}</password>
11+
</server>
12+
</servers>
13+
14+
<profiles>
15+
<profile>
16+
<id>ossrh</id>
17+
<activation>
18+
<activeByDefault>true</activeByDefault>
19+
</activation>
20+
<properties>
21+
<gpg.executable>gpg</gpg.executable>
22+
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
23+
</properties>
24+
</profile>
25+
</profiles>
26+
27+
</settings>

0 commit comments

Comments
 (0)