Release SNAPSHOT pkg for every build (#118)

* Release SNAPSHOT build every build

* fix
This commit is contained in:
Young Bu Park 2020-01-17 14:26:05 -08:00 committed by GitHub
parent 19f75763be
commit 848ab95763
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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