Skip to content

Commit 3fb4e2f

Browse files
committed
[CI] Fix Java setup in deploy.yml (take 2)
Signed-off-by: onobc <[email protected]>
1 parent fc09110 commit 3fb4e2f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 4 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: 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'
@@ -38,9 +38,7 @@ jobs:
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

0 commit comments

Comments
 (0)