File tree Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Original file line number Diff line number Diff line change 33 release :
44 types :
55 - published
6+
67jobs :
78 publish :
89 if : ${{ !github.event.release.prerelease && github.event.release.target_commitish == 'master' }}
910 runs-on : ubuntu-latest
1011 steps :
1112 - uses : actions/checkout@v3
13+
1214 - name : Set up Apache Maven Central
1315 uses : actions/setup-java@v4
1416 with :
1719 server-id : ' ossrh'
1820 server-username : OSSRH_USERNAME
1921 server-password : OSSRH_PASSWORD
20- gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
21- gpg-passphrase : MAVEN_GPG_PASSPHRASE
2222
2323 - name : Get Maven project version
2424 run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
3131 env :
3232 OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
3333 OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
34- MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 9797 </execution >
9898 </executions >
9999 </plugin >
100- <plugin >
101- <groupId >org.apache.maven.plugins</groupId >
102- <artifactId >maven-gpg-plugin</artifactId >
103- <version >3.0.1</version >
104- <executions >
105- <execution >
106- <id >sign-artifacts</id >
107- <phase >verify</phase >
108- <goals >
109- <goal >sign</goal >
110- </goals >
111- </execution >
112- </executions >
113- <configuration >
114- <gpgArguments >
115- <arg >--pinentry-mode</arg >
116- <arg >loopback</arg >
117- </gpgArguments >
118- </configuration >
119- </plugin >
120100 <plugin >
121101 <groupId >org.sonatype.plugins</groupId >
122102 <artifactId >nexus-staging-maven-plugin</artifactId >
You can’t perform that action at this time.
0 commit comments