Try adding master restriction for publish

This commit is contained in:
Oliver Rümpelein 2021-03-06 19:24:10 +01:00
parent 417005db42
commit f470c1ccd8

View file

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