Skip to content

Commit fc09110

Browse files
committed
[CI] Fix Java setup in deploy.yml
Signed-off-by: onobc <[email protected]>
1 parent e8ad5b8 commit fc09110

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717
- name: Set up JDK 17 (0.x)
18-
if: startsWith(github.ref, 'refs/heads/0.x/')
18+
if: endsWith(github.ref, '/0.x/')
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: startsWith(github.ref, 'refs/heads/main/')
25+
if: endsWith(github.ref, '/main/')
2626
uses: actions/setup-java@v4
2727
with:
2828
java-version: '25'
@@ -38,7 +38,9 @@ jobs:
3838
central_password: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
3939
signing_key: ${{ secrets.GPG_PRIVATE_KEY }}
4040
passphrase: ${{ secrets.GPG_PASSPHRASE }}
41+
ghref: ${{ github.ref }}
4142
run: |
43+
echo "**** github.ref = ${ghref}"
4244
echo "${signing_key}" > private.asc
4345
gpg --import --batch --no-tty private.asc
4446
./mvnw -B deploy -s .mvn/settings.xml

0 commit comments

Comments
 (0)