File tree Expand file tree Collapse file tree 3 files changed +5
-29
lines changed
Expand file tree Collapse file tree 3 files changed +5
-29
lines changed Original file line number Diff line number Diff line change 2929 gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
3030 gpg-passphrase : MAVEN_GPG_PASSPHRASE
3131 - name : Publish to the Maven Central Repository
32- run : ./mvnw clean --batch-mode -P default,ossrh -Dpublish=ossrh deploy
32+ run : ./mvnw clean --batch-mode -P default,central -Dpublish=central deploy
3333 env :
34- MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
35- MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
34+ MAVEN_USERNAME : ${{ secrets.CENTRAL_USERNAME }}
35+ MAVEN_PASSWORD : ${{ secrets.CENTRAL_TOKEN }}
3636 MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 3131 env :
3232 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3333 MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
34- publish-ossrh :
35- runs-on : ubuntu-latest
36- permissions :
37- contents : read
38- packages : write
39- steps :
40- - uses : actions/checkout@v4
41- - name : Set up JDK ${{ env.JAVA_VERSION }} for publishing to Maven Central Repository
42- uses : actions/setup-java@v4
43- with :
44- distribution : ' temurin'
45- java-version : ${{ env.JAVA_VERSION }}
46- cache : ' maven'
47- server-id : ossrh
48- server-username : MAVEN_USERNAME
49- server-password : MAVEN_PASSWORD
50- gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
51- gpg-passphrase : MAVEN_GPG_PASSPHRASE
52- - name : Publish to the Maven Central Repository
53- run : ./mvnw clean --batch-mode -P default,ossrh -Dpublish=ossrh deploy
54- env :
55- MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
56- MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
57- MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 171171 </build >
172172 </profile >
173173 <profile >
174- <id >ossrh </id >
174+ <id >central </id >
175175 <activation >
176176 <property >
177177 <name >publish</name >
178- <value >ossrh </value >
178+ <value >central </value >
179179 </property >
180180 </activation >
181181 <build >
You can’t perform that action at this time.
0 commit comments