File tree Expand file tree Collapse file tree 2 files changed +13
-40
lines changed
Expand file tree Collapse file tree 2 files changed +13
-40
lines changed Original file line number Diff line number Diff line change @@ -44,16 +44,20 @@ jobs:
4444 java-version : ' 8'
4545 distribution : ' adopt'
4646 cache : ' maven'
47- server-id : ossrh
48- server-username : MAVEN_USERNAME
49- server-password : MAVEN_PASSWORD
47+ server-username : MAVEN_USERNAME # env variable for username in deploy
48+ server-password : MAVEN_PASSWORD # env variable for token in deploy
49+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
50+ gpg-passphrase : MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
5051 - name : Publish package
51- run : mvn -B deploy -DskipTests
52+ run : |
53+ ./mvnw -B verify nexus-staging:deploy -P deploy && \
54+ ./mvnw -B nexus-staging:release -P deploy
5255 env :
5356 OPENSOURCE_PROJECTS_KS_PW : ${{ secrets.KEYSTORE_PASSWORD }}
5457 OPENSOURCE_PROJECTS_KEY_PW : ${{ secrets.KEYSTORE_KEY_PASSWORD }}
5558 MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
5659 MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
60+ MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
5761 - name : Create and upload Github Release
5862 uses : xresloader/upload-to-github-release@v1
5963 env :
Original file line number Diff line number Diff line change 77 <parent >
88 <groupId >at.favre.lib</groupId >
99 <artifactId >common-parent</artifactId >
10- <version >15 </version >
10+ <version >18 </version >
1111 </parent >
1212
1313 <artifactId >bytes</artifactId >
2626 <commonConfig .jarSign.skip>false</commonConfig .jarSign.skip>
2727 </properties >
2828
29- <repositories >
30- <repository >
31- <id >central</id >
32- <name >Maven Central</name >
33- <url >https://repo1.maven.org/maven2</url >
34- <snapshots >
35- <enabled >false</enabled >
36- </snapshots >
37- </repository >
38- </repositories >
39-
40- <pluginRepositories >
41- <pluginRepository >
42- <id >central</id >
43- <name >Maven Central</name >
44- <url >https://repo1.maven.org/maven2</url >
45- <snapshots >
46- <enabled >false</enabled >
47- </snapshots >
48- </pluginRepository >
49- </pluginRepositories >
5029 <build >
5130 <plugins >
5231 <plugin >
11695 <dependency >
11796 <groupId >junit</groupId >
11897 <artifactId >junit</artifactId >
119- <version >4.13.2</version >
12098 <scope >test</scope >
12199 </dependency >
122100 <dependency >
133111 </dependency >
134112 </dependencies >
135113
136- <distributionManagement >
137- <repository >
138- <id >ossrh</id >
139- <name >Central Repository OSSRH</name >
140- <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
141- </repository >
142- </distributionManagement >
143-
144114 <scm >
145- <connection >https://github.com/patrickfav/bytes-java.git</connection >
146- <developerConnection >https://github.com/patrickfav/bytes-java.git</developerConnection >
147- <tag >HEAD</tag >
115+ <connection >scm:git:https://github.com/patrickfav/bytes-java.git</connection >
116+ <developerConnection >scm:git:https://github.com/patrickfav/bytes-java.git</developerConnection >
148117 <url >https://github.com/patrickfav/bytes-java</url >
149118 </scm >
150119
154123 </issueManagement >
155124
156125 <ciManagement >
157- <system >Travis </system >
158- <url >https://travis-ci .com/patrickfav/bytes-java</url >
126+ <system >Github Actions </system >
127+ <url >https://github .com/patrickfav/bytes-java/actions </url >
159128 </ciManagement >
160129</project >
You can’t perform that action at this time.
0 commit comments