File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 3232 run : mvn --batch-mode verify
3333
3434 maven-deploy :
35- name : " Deploy snapshot to Sonatype OSSRH "
35+ name : " Deploy snapshot to Maven Central "
3636 needs : maven-verify
3737 if : ${{ github.ref == 'refs/heads/main' }}
3838 runs-on : ubuntu-latest
4444 with :
4545 java-version : 21
4646 distribution : " temurin"
47- server-id : ossrh
48- server-username : OSSRH_USERNAME
49- server-password : OSSRH_PASSWORD
47+ server-id : central
48+ server-username : MAVEN_USERNAME
49+ server-password : MAVEN_PASSWORD
5050 - name : " Get Maven dependencies from cache"
5151 uses : actions/cache@v4
5252 with :
5656 - name : " Build and deploy to the Maven Central Repository"
5757 run : mvn --batch-mode -DskipTests deploy
5858 env :
59- OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
60- OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
59+ MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
60+ MAVEN_PASSWORD : ${{ secrets.MAVEN_PASSWORD }}
You can’t perform that action at this time.
0 commit comments