11name : Build and Deploy Snapshot
22on :
33 push :
4- branches :
5- - master
6- - " 3.0"
7- - " 2.18"
84 paths-ignore :
95 - " README.md"
106 - " release-notes/*"
117 pull_request :
12- branches :
13- - master
14- - " 3.0"
15- - " 2.18"
168 paths-ignore :
179 - " README.md"
1810 - " release-notes/*"
@@ -22,18 +14,17 @@ permissions:
2214
2315jobs :
2416 build :
25- runs-on : ${{ matrix.os }}
17+ runs-on : ' ubuntu-latest '
2618 strategy :
2719 fail-fast : false
2820 matrix :
2921 java_version : ['8', '11', '17', '21']
30- os : ['ubuntu-20.04']
3122 env :
3223 JAVA_OPTS : " -XX:+TieredCompilation -XX:TieredStopAtLevel=1"
3324 steps :
34- - uses : actions/checkout@v3
25+ - uses : actions/checkout@v4
3526 - name : Set up JDK
36- uses : actions/setup-java@v3
27+ uses : actions/setup-java@v4
3728 with :
3829 distribution : ' temurin'
3930 java-version : ${{ matrix.java_version }}
@@ -48,20 +39,20 @@ jobs:
4839 run : ./mvnw -B -q -ff -ntp verify
4940 - name : Extract project Maven version
5041 id : projectVersion
51- run : echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.3.0 :evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
42+ run : echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.5.1 :evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
5243 - name : Deploy snapshot
53- if : github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT')
44+ if : ${{ github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
5445 env :
5546 CI_DEPLOY_USERNAME : ${{ secrets.CI_DEPLOY_USERNAME }}
5647 CI_DEPLOY_PASSWORD : ${{ secrets.CI_DEPLOY_PASSWORD }}
5748 # MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
5849 run : ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
5950 - name : Generate code coverage
60- if : github.event_name != 'pull_request' && matrix.java_version == '8'
51+ if : ${{ github.event_name != 'pull_request' && matrix.java_version == '8' }}
6152 run : ./mvnw -B -q -ff -ntp test
6253 - name : Publish code coverage
63- if : github.event_name != 'pull_request' && matrix.java_version == '8'
64- uses : codecov/codecov-action@v1
54+ if : ${{ github.event_name != 'pull_request' && matrix.java_version == '8' }}
55+ uses : codecov/codecov-action@v4
6556 with :
6657 token : ${{ secrets.CODECOV_TOKEN }}
6758 file : ./target/site/jacoco/jacoco.xml
0 commit comments