build: check repo name and build type to skip deploy on PR and forks
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user