From 826403a5122904435eaf202ddb7a20b98835cfc6 Mon Sep 17 00:00:00 2001 From: xawotihs Date: Thu, 5 Dec 2013 22:44:02 +0100 Subject: [PATCH] Fixed upload shell script --- upload-binaries.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/upload-binaries.sh b/upload-binaries.sh index f6bbaacc0..540817461 100755 --- a/upload-binaries.sh +++ b/upload-binaries.sh @@ -1,6 +1,5 @@ -#!/bin/sh -ex - -if [ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "ci_upload_binaries"]; then +if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then +if [ "$TRAVIS_BRANCH" == "ci_upload_binaries" ]; then echo -e "Creating a release\n" curl -X POST -H "Authorization: token ${GH_TOKEN}" \ -d '{"tag_name": "pre-release-${TRAVIS_BUILD_NUMBER}", "target_commitish": "master", "name": "pre-release-${TRAVIS_BUILD_NUMBER}", "body": "Automatic pre-release ${TRAVIS_BUILD_NUMBER}", "draft": true, "prerelease": true}' "https://api.github.com/repos/WagicProject/wagic/releases" @@ -17,3 +16,4 @@ if [ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "ci_upload_binarie echo -e "Done uploading\n" fi +fi