8
8
9
9
cd " $( dirname $0 ) /../../"
10
10
11
- if [ -z ${MATERIAL2_BUILDS_TOKEN } ]; then
11
+ if [ -z ${GITHUB_ACCESS_TOKEN } ]; then
12
12
echo " Error: No access token for GitHub could be found." \
13
- " Please set the environment variable 'MATERIAL2_BUILDS_TOKEN '."
13
+ " Please set the environment variable 'GITHUB_ACCESS_TOKEN '."
14
14
exit 1
15
15
fi
16
16
@@ -25,16 +25,16 @@ docsContentPath="${projectPath}/tmp/material2-docs-content"
25
25
26
26
# Path to the build output of the Bazel "@angular/components-examples" NPM package.
27
27
# Note: When changing this, also change the path in `scripts/build-docs-content.js`.
28
- examplesPackagePath=" ${projectPath} /dist/docs-content-pkg/ "
28
+ examplesPackagePath=" ${projectPath} /dist/docs-content-pkg"
29
29
30
30
# Git clone URL for the material2-docs-content repository.
31
- docsContentRepoUrl=" https://github.com/angular /material2-docs-content"
31
+ docsContentRepoUrl=" https://github.com/ng-docs /material2-docs-content"
32
32
33
33
# Current version of Angular Material from the package.json file
34
34
buildVersion=$( node -pe " require('./package.json').version" )
35
35
36
36
# Name of the branch that is currently being deployed.
37
- branchName=${CIRCLE_BRANCH :- ' master' }
37
+ branchName=${TRAVIS_BRANCH :- ' master' }
38
38
39
39
# Additional information about the last commit for docs-content commits.
40
40
commitSha=$( git rev-parse --short HEAD)
@@ -96,7 +96,7 @@ git config user.name "$commitAuthorName"
96
96
git config user.email " $commitAuthorEmail "
97
97
git config credential.helper " store --file=.git/credentials"
98
98
99
- echo " https://${MATERIAL2_BUILDS_TOKEN} : @github.com" > .git/credentials
99
+ echo " https://asnowwolf: ${GITHUB_ACCESS_TOKEN} @github.com" > .git/credentials
100
100
101
101
echo " Credentials for docs-content repository are now set up. Publishing.."
102
102
0 commit comments