File tree Expand file tree Collapse file tree 3 files changed +19
-8
lines changed
Expand file tree Collapse file tree 3 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 5757 MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
5858 MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
5959
60+ - name : Initialize Maven settings
61+ run : mkdir -p ./.m2 && mv settings.xml ./.m2
62+
6063 - name : Publish package
6164 run : mvn --batch-mode "-Dprod.build=true" -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} clean deploy --file pom-dist.xml
6265 env :
Original file line number Diff line number Diff line change 725725 </configuration >
726726 </plugin >
727727 <plugin >
728- <groupId >org.sonatype.plugins </groupId >
729- <artifactId >nexus-staging -maven-plugin</artifactId >
730- <version >1.6.13 </version >
728+ <groupId >org.sonatype.central </groupId >
729+ <artifactId >central-publishing -maven-plugin</artifactId >
730+ <version >0.8.0 </version >
731731 <extensions >true</extensions >
732732 <configuration >
733- <serverId >ossrh</serverId >
734- <nexusUrl >https://oss.sonatype.org/</nexusUrl >
735- <autoReleaseAfterClose >true</autoReleaseAfterClose >
733+ <publishingServerId >central</publishingServerId >
734+ <autoPublish >true</autoPublish >
736735 </configuration >
737736 </plugin >
738737 </plugins >
739738 </build >
740- <distributionManagement >
739+ <!-- < distributionManagement>
741740 <snapshotRepository>
742741 <id>ossrh</id>
743742 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
744743 </snapshotRepository>
745- </distributionManagement >
744+ </distributionManagement> -->
746745</project >
Original file line number Diff line number Diff line change 1+ <settings >
2+ <servers >
3+ <server >
4+ <id >central</id >
5+ <username >${env.MAVEN_USERNAME}</username >
6+ <password >${env.MAVEN_PASSWORD}</password >
7+ </server >
8+ </servers >
9+ </settings >
You can’t perform that action at this time.
0 commit comments