This repository was archived by the owner on Jul 31, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +43
-7
lines changed
Expand file tree Collapse file tree 3 files changed +43
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments