From 0aed4693c3c9c683902f98516f999f3f45a083c1 Mon Sep 17 00:00:00 2001 From: Young Bu Park Date: Fri, 17 Jan 2020 13:51:04 -0800 Subject: [PATCH 1/2] Release SNAPSHOT build every build --- .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 ffc0e2b844..94c45badd8 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 From 352b315fe186d6f651b55cd9afeb76e3e4463f5b Mon Sep 17 00:00:00 2001 From: Young Bu Park Date: Fri, 17 Jan 2020 13:56:00 -0800 Subject: [PATCH 2/2] fix --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 94c45badd8..e03e6502b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -63,7 +63,7 @@ jobs: 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, "master") && contains(env.PARENT_VERSION, '-SNAPSHOT') + if: contains(github.ref, 'master') && contains(env.PARENT_VERSION, '-SNAPSHOT') run: echo "##[set-env name=DEPLOY_OSSRH;]true" - name: Is Release or RC version ? if: startswith(github.ref, 'refs/tags/v') && !contains(env.PARENT_VERSION, '-SNAPSHOT')