File tree 3 files changed +77
-3
lines changed
3 files changed +77
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ tags : [ deploy** ]
7
+
8
+ jobs :
9
+ deploy :
10
+ timeout-minutes : 20
11
+ runs-on : ubuntu-latest
12
+
13
+ strategy :
14
+ fail-fast : false
15
+
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - name : Set up JDK
19
+ uses : actions/setup-java@v3
20
+ with :
21
+ java-version : ' 8'
22
+ distribution : ' adopt'
23
+ cache : ' maven'
24
+ server-id : ossrh
25
+ server-username : MAVEN_USERNAME
26
+ server-password : MAVEN_CENTRAL_TOKEN
27
+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
28
+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
29
+ - name : Publish to Apache Maven Central
30
+ run : mvn --no-transfer-progress -Dmaven.test.skip=true deploy
31
+ env :
32
+ MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
33
+ MAVEN_CENTRAL_TOKEN : ${{ secrets.OSSRH_PASSWORD }}
34
+ MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ tags : [ release** ]
7
+
8
+ jobs :
9
+ release :
10
+ timeout-minutes : 20
11
+ runs-on : ubuntu-latest
12
+
13
+ strategy :
14
+ fail-fast : false
15
+
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - name : Set up JDK
19
+ uses : actions/setup-java@v3
20
+ with :
21
+ java-version : ' 8'
22
+ distribution : ' adopt'
23
+ cache : ' maven'
24
+ server-id : ossrh
25
+ server-username : MAVEN_USERNAME
26
+ server-password : MAVEN_CENTRAL_TOKEN
27
+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
28
+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
29
+ - name : Publish to Apache Maven Central
30
+ run : mvn --no-transfer-progress -Dmaven.test.skip=true deploy
31
+ env :
32
+ MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
33
+ MAVEN_CENTRAL_TOKEN : ${{ secrets.OSSRH_PASSWORD }}
34
+ MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
35
+ - name : Release to Apache Maven Central
36
+ run : mvn --no-transfer-progress -Dmaven.test.skip=true nexus-staging:release
37
+ env :
38
+ MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
39
+ MAVEN_CENTRAL_TOKEN : ${{ secrets.OSSRH_PASSWORD }}
40
+ MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 73
73
<plugin >
74
74
<groupId >org.sonatype.plugins</groupId >
75
75
<artifactId >nexus-staging-maven-plugin</artifactId >
76
- <version >1.6.5 </version >
76
+ <version >1.6.13 </version >
77
77
<extensions >true</extensions >
78
78
<configuration >
79
79
<serverId >ossrh</serverId >
177
177
</plugin >
178
178
179
179
<plugin >
180
+ <groupId >org.apache.maven.plugins</groupId >
180
181
<artifactId >maven-deploy-plugin</artifactId >
181
- <version >2.8.2 </version >
182
+ <version >3.0.0 </version >
182
183
<configuration >
183
- <uniqueVersion >false</uniqueVersion >
184
184
<retryFailedDeploymentCount >10</retryFailedDeploymentCount >
185
185
</configuration >
186
186
</plugin >
You can’t perform that action at this time.
0 commit comments