From 15b1b43df5ff282097fcdb474e36bf7a5e121b35 Mon Sep 17 00:00:00 2001 From: joohyukkim Date: Wed, 4 Dec 2024 09:23:00 +0900 Subject: [PATCH] Put back release JDK version check --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aa6c0df..b8438d1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,17 +43,17 @@ jobs: id: projectVersion run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT - name: Deploy snapshot - if: ${{ github.event_name != 'pull_request' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }} + if: ${{ github.event_name != 'pull_request' && matrix.java_version == '17' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }} env: CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME3 }} CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD3 }} # MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} run: ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy - name: Generate code coverage - if: ${{ matrix.release_build && github.event_name != 'pull_request' }} + if: ${{ github.event_name != 'pull_request' && matrix.java_version == '17' }} run: ./mvnw -B -q -ff -ntp test - name: Publish code coverage - if: ${{ matrix.release_build && github.event_name != 'pull_request' }} + if: ${{ github.event_name != 'pull_request' && matrix.java_version == '17' }} uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }}