File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 2222 - name : Build with Maven
2323 run : mvn clean package
2424
25+ - name : Publish to Maven CEntral
26+ run : mvn --batch-mode deploy
27+ env :
28+ MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
29+ MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
30+
2531 - name : Publish to GitHub Packages
26- run : mvn deploy
32+ run : mvn --batch-mode deploy
2733 env :
2834 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 6262 <version >${junit.version} </version >
6363 </dependency >
6464 </dependencies >
65+
66+ <build >
67+ <plugins >
68+ <plugin >
69+ <groupId >org.sonatype.central</groupId >
70+ <artifactId >central-publishing-maven-plugin</artifactId >
71+ <version >0.7.0</version >
72+ <extensions >true</extensions >
73+ <configuration >
74+ <publishingServerId >central</publishingServerId >
75+ <autoPublish >true</autoPublish >
76+ </configuration >
77+ </plugin >
78+ </plugins >
79+ </build >
6580</project >
You can’t perform that action at this time.
0 commit comments