File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,30 +18,19 @@ permissions:
1818 contents : write
1919
2020jobs :
21- get-version-and-publish :
21+ publish-to-maven-central :
2222 runs-on : ubuntu-latest
2323 steps :
2424 - name : Checkout Repository
2525 uses : actions/checkout@v4
2626 with :
2727 token : ${{ secrets.GITHUB_TOKEN }}
2828
29- - name : Set up JDK
30- uses : actions/setup-java@v2
29+ - name : Setup JDK 11
30+ uses : actions/setup-java@v3
3131 with :
32- distribution : ' adopt '
32+ distribution : ' temurin '
3333 java-version : ' 11'
34- java-package : jdk
35- server-id : central
36- server-username : ${{ secrets.SONATYPE_USERNAME }}
37- server-password : ${{ secrets.SONATYPE_PASSWORD }}
38- gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
39- gpg-passphrase : ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
40- settings-path : ${{ github.workspace }}
41-
42- - name : Test
43- run : |
44- curl -u "$SONATYPE_USERNAME:$SONATYPE_PASSWORD" https://s01.oss.sonatype.org/service/local/staging/profiles
4534
4635 - name : Build and Test
4736 run : ./gradlew clean build
You can’t perform that action at this time.
0 commit comments