build: check repo name and build type to skip deploy on PR and forks

This commit is contained in:
Skylot
2019-03-20 13:59:19 +03:00
parent 2b242b9109
commit 6d052d39ad
+2 -2
View File
@@ -31,10 +31,10 @@ jobs:
include:
- stage: deploy-unstable
jdk: openjdk8
if: branch = master AND env(BINTRAY_KEY) IS present
if: branch = master AND repo = env(MAIN_REPO) AND type = push
script: bash scripts/travis-master.sh
- stage: deploy-release
jdk: openjdk8
if: branch = release AND env(GH_TOKEN) IS present
if: branch = release AND repo = env(MAIN_REPO) AND type = push
script: bash scripts/travis-release.sh