File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed
Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 99 steps :
1010 - uses : actions/checkout@v3
1111 - name : Set up JDK ${{ matrix.java-version }}
12- uses : actions/setup-java@v3
12+ uses : actions/setup-java@v4
1313 with :
1414 java-version : ${{ matrix.java-version }}
15- distribution : ' adopt '
15+ distribution : ' temurin '
1616 cache : ' maven'
1717 - name : Build with Maven
1818 env :
Original file line number Diff line number Diff line change 1+ name : Publish package to the Maven Central Repository
2+ on :
3+ release :
4+ types : [published]
5+ jobs :
6+ publish :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@v4
10+ - name : Set up Maven Central Repository
11+ uses : actions/setup-java@v4
12+ with :
13+ java-version : ' 11'
14+ distribution : ' temurin'
15+ server-id : ossrh
16+ server-username : MAVEN_USERNAME
17+ server-password : MAVEN_PASSWORD
18+ - name : Publish package
19+ run : mvn --batch-mode deploy
20+ env :
21+ MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
22+ MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
You can’t perform that action at this time.
0 commit comments