ci: use angular-builds credentials for publishing artifacts (#15072)

This commit is contained in:
Chuck Jazdzewski 2017-03-10 14:03:40 -08:00 committed by GitHub
parent a69afeb614
commit 53d62fa7d0
2 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,7 @@ env:
global:
# GITHUB_TOKEN_ANGULAR
# This is needed for the e2e Travis matrix task to publish packages to github for continuous packages delivery.
- secure: "fq/U7VDMWO8O8SnAQkdbkoSe2X92PVqg4d044HmRYVmcf6YbO48+xeGJ8yOk0pCBwl3ISO4Q2ot0x546kxfiYBuHkZetlngZxZCtQiFT9kyId8ZKcYdXaIW9OVdw3Gh3tQyUwDucfkVhqcs52D6NZjyE2aWZ4/d1V4kWRO/LMgo="
- secure: "gE4gRM6Ohjaroh6RqDHtrVKyEfafVxZPQe3C2if5hJ13xTAXoHqTFibmTIMaLq/cWkO/DeY6AAzHDWomaJODO1nWwBJFvNj5kw9BqKgojw1uUkkKh7cC9yCUfEXVkJ56lfvRVcs/bJAvjpCBygumnQo1qwosOc0jTFPyB8sF6bQ="
# FIREBASE_TOKEN
# This is needed for publishing builds to the "aio-staging" firebase site.
# TODO(i): the token was generated using the iminar@google account, we should switch to a shared/role-base account.

View File

@ -75,6 +75,8 @@ function publishRepo {
done
(
# SECURITY CRITICAL: DO NOT remove the set -x on the following line. Removing it will leak the github credentials to the travis log.
set -x
cd $REPO_DIR && \
git config credential.helper "store --file=.git/credentials" && \
echo "https://${GITHUB_TOKEN_ANGULAR}:@github.com" > .git/credentials