File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77jobs :
88 build :
99 runs-on : ubuntu-latest
10- permissions :
11- contents : read
12- packages : write
1310 steps :
1411 - uses : actions/checkout@v2
1512 - name : Set up JDK 11
1613 uses : actions/setup-java@v2
1714 with :
1815 java-version : ' 11'
1916 distribution : ' adopt'
17+ server-id : ossrh
18+ server-username : MAVEN_USERNAME
19+ server-password : MAVEN_PASSWORD
2020 - name : Build with Maven
2121 run : mvn --batch-mode deploy
2222 env :
23- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23+ MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
24+ MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
Original file line number Diff line number Diff line change 44
55 <groupId >com.pigumer.tools.archetype</groupId >
66 <artifactId >openapi-archetype</artifactId >
7- <version >0.1.4 </version >
7+ <version >0.1.5 </version >
88 <packaging >maven-archetype</packaging >
99
1010 <name >openapi-archetype</name >
5858
5959 <distributionManagement >
6060 <repository >
61- <id >github </id >
62- <name >GitHub Packages </name >
63- <url >https://maven.pkg.github.com/PigumerGroup/openapi-archetype </url >
61+ <id >ossrh </id >
62+ <name >Central Repository OSSRH </name >
63+ <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/ </url >
6464 </repository >
6565 </distributionManagement >
6666</project >
You can’t perform that action at this time.
0 commit comments