From: Erwin Janssen Date: Wed, 14 Sep 2016 16:18:36 +0000 (+0200) Subject: Fix Travis deployment X-Git-Tag: untagged-4431b9bde391f1b69fe5~2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9ec9c43a51419a45e491444045eb3cbb9011f07;p=graphviz Fix Travis deployment Because of the use of `sudo` the created file is owned by root and the default travis user has no permission to deploy it. Using `chown` fixes this. Also added a condition on the deploy, so only one file gets deployed. --- diff --git a/.travis.yml b/.travis.yml index e7f351ee5..78debcf03 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,6 +40,8 @@ script: before_deploy: - export DEPLOYED_FILE=$(ls *.tar.gz) - echo "deploying ${DEPLOYED_FILE} to GitHub releases" +- sudo chown travis ${DEPLOYED_FILE} + deploy: provider: releases api_key: @@ -48,3 +50,4 @@ deploy: file: "${DEPLOYED_FILE}" on: repo: ellson/graphviz + condition: ${DOCKER_BUILD} == "FALSE"