File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,14 @@ jobs:
1515 steps :
1616 - uses : actions/checkout@v4
1717 - name : Set up JDK 17 (0.x)
18- if : endsWith( github.ref, '/0.x/')
18+ if : github.ref != 'refs/heads/main'
1919 uses : actions/setup-java@v4
2020 with :
2121 java-version : ' 17'
2222 distribution : ' temurin'
2323 cache : maven
2424 - name : Set up JDK 25 (main)
25- if : endsWith( github.ref, '/main/')
25+ if : github.ref == 'refs/heads/main'
2626 uses : actions/setup-java@v4
2727 with :
2828 java-version : ' 25'
3838 central_password : ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
3939 signing_key : ${{ secrets.GPG_PRIVATE_KEY }}
4040 passphrase : ${{ secrets.GPG_PASSPHRASE }}
41- ghref : ${{ github.ref }}
4241 run : |
43- echo "**** github.ref = ${ghref}"
4442 echo "${signing_key}" > private.asc
4543 gpg --import --batch --no-tty private.asc
4644 ./mvnw -B deploy -s .mvn/settings.xml
You can’t perform that action at this time.
0 commit comments