mirror of https://github.com/dapr/java-sdk.git
Release SNAPSHOT pkg for every build (#118)
* Release SNAPSHOT build every build * fix
This commit is contained in:
parent
19f75763be
commit
848ab95763
|
@ -62,10 +62,10 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
PARENT_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
|
PARENT_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
|
||||||
echo "##[set-env name=PARENT_VERSION;]$PARENT_VERSION"
|
echo "##[set-env name=PARENT_VERSION;]$PARENT_VERSION"
|
||||||
- name: Is SNAPSHOT release?
|
- name: Is SNAPSHOT release ?
|
||||||
if: contains(github.ref, 'release-') && contains(env.PARENT_VERSION, '-SNAPSHOT')
|
if: contains(github.ref, 'master') && contains(env.PARENT_VERSION, '-SNAPSHOT')
|
||||||
run: echo "##[set-env name=DEPLOY_OSSRH;]true"
|
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')
|
if: startswith(github.ref, 'refs/tags/v') && !contains(env.PARENT_VERSION, '-SNAPSHOT')
|
||||||
run: echo "##[set-env name=DEPLOY_OSSRH;]true"
|
run: echo "##[set-env name=DEPLOY_OSSRH;]true"
|
||||||
- name: Publish to ossrh
|
- name: Publish to ossrh
|
||||||
|
|
Loading…
Reference in New Issue