File tree Expand file tree Collapse file tree 2 files changed +42
-2
lines changed
Expand file tree Collapse file tree 2 files changed +42
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ release :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - uses : actions/checkout@v4
12+ - name : Set up JDK 17
13+ uses : actions/setup-java@v4
14+ with :
15+ java-version : ' 17'
16+ distribution : ' temurin'
17+ server-id : ' ossrh'
18+ server-username : OSSRH_USERNAME
19+ server-password : OSSRH_PASSWORD
20+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
21+ gpg-passphrase : GPG_KEY_PASSPHRASE
22+ cache : maven
23+
24+ - name : Build
25+ run : mvn -B -P release clean verify
26+ env :
27+ GPG_KEY_PASSPHRASE : ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
28+ OSSRH_USERNAME : ${{ secrets.SONATYPE_USER }}
29+ OSSRH_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
Original file line number Diff line number Diff line change 8888 <version >${maven.release.plugin.version} </version >
8989 <configuration >
9090 <autoVersionSubmodules >true</autoVersionSubmodules >
91- <scmReleaseCommitComment >Releasing @{releaseLabel}</scmReleaseCommitComment >
92- <scmDevelopmentCommitComment >Preparing for next development iteration</scmDevelopmentCommitComment >
91+ <scmReleaseCommitComment >[no ci] chore: Releasing @{releaseLabel}</scmReleaseCommitComment >
92+ <scmDevelopmentCommitComment >[no ci] chore: Preparing for next development iteration</scmDevelopmentCommitComment >
9393 <tagNameFormat >@{project.version}</tagNameFormat >
9494 </configuration >
9595 </plugin >
96+ <plugin >
97+ <groupId >org.sonatype.plugins</groupId >
98+ <artifactId >nexus-staging-maven-plugin</artifactId >
99+ <version >${nexus.staging.release.plugin.version} </version >
100+ <configuration >
101+ <serverId >ossrh</serverId >
102+ <nexusUrl >https://oss.sonatype.org/</nexusUrl >
103+ <autoReleaseAfterClose >true</autoReleaseAfterClose >
104+ </configuration >
105+ </plugin >
96106 </plugins >
97107 </build >
98108 </profile >
120130 <maven .source.plugin.version>3.3.0</maven .source.plugin.version>
121131 <maven .surefire.plugin.version>3.2.2</maven .surefire.plugin.version>
122132 <maven .exec.plugin.version>3.1.1</maven .exec.plugin.version>
133+ <nexus .staging.release.plugin.version>1.7.0</nexus .staging.release.plugin.version>
123134
124135 <selenium .version>4.21.0</selenium .version>
125136 <appium .version>9.2.2</appium .version>
You can’t perform that action at this time.
0 commit comments