Skip to content

Commit 179a73d

Browse files
committed
Fix CI
1 parent a27fc5a commit 179a73d

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,11 @@ name: Build and Deploy Snapshot
22
on:
33
push:
44
branches:
5-
- master
6-
- "3.0"
7-
- "2.18"
85
paths-ignore:
96
- "README.md"
107
- "release-notes/*"
118
pull_request:
129
branches:
13-
- master
14-
- "3.0"
15-
- "2.18"
1610
paths-ignore:
1711
- "README.md"
1812
- "release-notes/*"
@@ -21,12 +15,11 @@ permissions:
2115

2216
jobs:
2317
build:
24-
runs-on: ${{ matrix.os }}
18+
runs-on: 'ubuntu-latest'
2519
strategy:
2620
fail-fast: false
2721
matrix:
2822
java_version: ['8', '11', '17', '21' ]
29-
os: ['ubuntu-20.04']
3023
env:
3124
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
3225
steps:
@@ -49,17 +42,17 @@ jobs:
4942
id: projectVersion
5043
run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
5144
- name: Deploy snapshot
52-
if: github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT')
45+
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
5346
env:
5447
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
5548
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
5649
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
5750
run: ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
5851
- name: Generate code coverage
59-
if: github.event_name != 'pull_request' && matrix.java_version == '8'
52+
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '8' }}
6053
run: ./mvnw -B -q -ff -ntp test
6154
- name: Publish code coverage
62-
if: github.event_name != 'pull_request' && matrix.java_version == '8'
55+
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '8' }}
6356
uses: codecov/codecov-action@v4
6457
with:
6558
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)