From 848ab95763c17e15135fb7a0101555ea64d4603b Mon Sep 17 00:00:00 2001 From: Young Bu Park Date: Fri, 17 Jan 2020 14:26:05 -0800 Subject: [PATCH] Release SNAPSHOT pkg for every build (#118) * Release SNAPSHOT build every build * fix --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ffc0e2b84..e03e6502b 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