From 0ddfd2d5216b19e6e3e996931ee96a82988420da Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Thu, 30 Aug 2018 22:05:46 +0200 Subject: [PATCH] deploy only when on master --- .travis.yml | 2 +- appveyor.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d3c90e33..24dc40f2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -104,7 +104,7 @@ after_script: fi # keep in sync with appveyor.yml - - if [ "${DO_PUSH_ARTIFACT}" = "yes" ]; then + - if [ "${DO_PUSH_ARTIFACT}" = "yes" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then git config --global user.email "builds@travis-ci.org"; git config --global user.name "Travis CI"; .github/push_artifacts.sh "Travis CI build ${TRAVIS_JOB_NUMBER}"; diff --git a/appveyor.yml b/appveyor.yml index aee229c6..71f557c8 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -107,7 +107,7 @@ build_script: # keep in sync with .travis.yml - bash -c "git config --global user.email 'no-reply@appveyor.com'" - bash -c "git config --global user.name 'AppVeyor'" - - bash -c ".github/push_artifacts.sh \"AppVeyor build ${APPVEYOR_BUILD_NUMBER}.${APPVEYOR_JOB_NUMBER}\"" + - bash -c "if [ -z \"$APPVEYOR_PULL_REQUEST_NUMBER\" ]; then .github/push_artifacts.sh \"AppVeyor build ${APPVEYOR_BUILD_NUMBER}.${APPVEYOR_JOB_NUMBER}\"; fi" cache: - C:\zlib -> appveyor.yml