File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Publish package to the Maven Central Repository and GitHub Packages
1+ name : Publish package to the Maven Central Repository
22on :
33 release :
44 types : [created]
55jobs :
66 publish :
7- runs-on : ubuntu-latest
8- permissions :
9- contents : read
10- packages : write
7+ runs-on : ubuntu-latest
118 steps :
129 - uses : actions/checkout@v3
13- - name : Set up Java for publishing to Maven Central Repository
10+ - name : Set up Maven Central Repository
1411 uses : actions/setup-java@v3
1512 with :
1613 java-version : ' 11'
1714 distribution : ' adopt'
1815 server-id : ossrh
1916 server-username : MAVEN_USERNAME
2017 server-password : MAVEN_PASSWORD
21- - name : Publish to the Maven Central Repository
18+ - name : Publish package
2219 run : mvn --batch-mode deploy
2320 env :
2421 MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
You can’t perform that action at this time.
0 commit comments