Try adding master restriction for publish
This commit is contained in:
parent
417005db42
commit
f470c1ccd8
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,8 @@ build:
|
||||||
artifact:
|
artifact:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script: gradle publish
|
script: gradle publish
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_COMMIT_REF_NAME"
|
key: "$CI_COMMIT_REF_NAME"
|
||||||
policy: pull-push
|
policy: pull-push
|
||||||
|
|
Loading…
Reference in a new issue