diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ffc0e2b844..e03e6502b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,10 +62,10 @@ jobs: run: | PARENT_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) echo "##[set-env name=PARENT_VERSION;]$PARENT_VERSION" - - name: Is SNAPSHOT release? - if: contains(github.ref, 'release-') && contains(env.PARENT_VERSION, '-SNAPSHOT') + - name: Is SNAPSHOT release ? + if: contains(github.ref, 'master') && contains(env.PARENT_VERSION, '-SNAPSHOT') run: echo "##[set-env name=DEPLOY_OSSRH;]true" - - name: Is Final release? + - name: Is Release or RC version ? if: startswith(github.ref, 'refs/tags/v') && !contains(env.PARENT_VERSION, '-SNAPSHOT') run: echo "##[set-env name=DEPLOY_OSSRH;]true" - name: Publish to ossrh