Commit 6d052d39 authored by Skylot's avatar Skylot

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

parent 2b242b91
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment