From 4126a8325314b1ed172abb3b768ce7fcf83336bb Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 13 Dec 2016 20:13:32 +0100 Subject: [PATCH] chore(artifacts): properly authenticate git (#2200) --- scripts/release/publish-build-artifacts.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/release/publish-build-artifacts.sh b/scripts/release/publish-build-artifacts.sh index 141cd25d7ff..2e6d9af50ac 100755 --- a/scripts/release/publish-build-artifacts.sh +++ b/scripts/release/publish-build-artifacts.sh @@ -3,6 +3,8 @@ # Script to publish the build artifacts to a GitHub repository. # Builds will be automatically published once new changes are made to the repository. +set -e -o pipefail + # Go to the project root directory cd $(dirname $0)/../.. @@ -40,7 +42,7 @@ git config user.name "$commitAuthorName" git config user.email "$commitAuthorEmail" git config credential.helper "store --file=.git/credentials" -echo "$MATERIAL2_BUILDS_TOKEN" > .git/credentials +echo "https://${MATERIAL2_BUILDS_TOKEN}:@github.com" > .git/credentials git add -A git commit -m "$commitMessage"