ci: use angular-builds credentials for publishing artifacts (#15072)
This commit is contained in:
parent
a69afeb614
commit
53d62fa7d0
|
@ -32,7 +32,7 @@ env:
|
||||||
global:
|
global:
|
||||||
# GITHUB_TOKEN_ANGULAR
|
# GITHUB_TOKEN_ANGULAR
|
||||||
# This is needed for the e2e Travis matrix task to publish packages to github for continuous packages delivery.
|
# 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
|
# FIREBASE_TOKEN
|
||||||
# This is needed for publishing builds to the "aio-staging" firebase site.
|
# 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.
|
# TODO(i): the token was generated using the iminar@google account, we should switch to a shared/role-base account.
|
||||||
|
|
|
@ -75,6 +75,8 @@ function publishRepo {
|
||||||
done
|
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 && \
|
cd $REPO_DIR && \
|
||||||
git config credential.helper "store --file=.git/credentials" && \
|
git config credential.helper "store --file=.git/credentials" && \
|
||||||
echo "https://${GITHUB_TOKEN_ANGULAR}:@github.com" > .git/credentials
|
echo "https://${GITHUB_TOKEN_ANGULAR}:@github.com" > .git/credentials
|
||||||
|
|
Loading…
Reference in New Issue