Skip to content

Commit 15b1b43

Browse files
JooHyukKimcowtowncoder
authored andcommitted
Put back release JDK version check
1 parent 45466d8 commit 15b1b43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ jobs:
4343
id: projectVersion
4444
run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
4545
- name: Deploy snapshot
46-
if: ${{ github.event_name != 'pull_request' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
46+
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '17' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
4747
env:
4848
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME3 }}
4949
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD3 }}
5050
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
5151
run: ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
5252
- name: Generate code coverage
53-
if: ${{ matrix.release_build && github.event_name != 'pull_request' }}
53+
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '17' }}
5454
run: ./mvnw -B -q -ff -ntp test
5555
- name: Publish code coverage
56-
if: ${{ matrix.release_build && github.event_name != 'pull_request' }}
56+
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '17' }}
5757
uses: codecov/codecov-action@v1
5858
with:
5959
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)