diff --git a/scripts/deploy/publish-build-artifacts.sh b/scripts/deploy/publish-build-artifacts.sh index 331e53c06b70..33101d5c2f80 100755 --- a/scripts/deploy/publish-build-artifacts.sh +++ b/scripts/deploy/publish-build-artifacts.sh @@ -9,9 +9,9 @@ set -e # Go to the project root directory cd $(dirname ${0})/../.. -if [ -z ${MATERIAL2_BUILDS_TOKEN} ]; then +if [ -z ${SNAPSHOT_BUILDS_GITHUB_TOKEN} ]; then echo "Error: No access token for GitHub could be found." \ - "Please set the environment variable 'MATERIAL2_BUILDS_TOKEN'." + "Please set the environment variable 'SNAPSHOT_BUILDS_GITHUB_TOKEN'." exit 1 fi @@ -98,7 +98,7 @@ publishPackage() { git config user.email "${commitAuthorEmail}" git config credential.helper "store --file=.git/credentials" - echo "https://${MATERIAL2_BUILDS_TOKEN}:@github.com" > .git/credentials + echo "https://${SNAPSHOT_BUILDS_GITHUB_TOKEN}:@github.com" > .git/credentials echo "Git configuration has been updated to match the last commit author. Publishing now.." diff --git a/scripts/deploy/publish-docs-content.sh b/scripts/deploy/publish-docs-content.sh index 5ed198d70bce..00922c988d09 100755 --- a/scripts/deploy/publish-docs-content.sh +++ b/scripts/deploy/publish-docs-content.sh @@ -8,9 +8,9 @@ set -e cd "$(dirname $0)/../../" -if [ -z ${MATERIAL2_BUILDS_TOKEN} ]; then +if [ -z ${SNAPSHOT_BUILDS_GITHUB_TOKEN} ]; then echo "Error: No access token for GitHub could be found." \ - "Please set the environment variable 'MATERIAL2_BUILDS_TOKEN'." + "Please set the environment variable 'SNAPSHOT_BUILDS_GITHUB_TOKEN'." exit 1 fi @@ -96,7 +96,7 @@ git config user.name "$commitAuthorName" git config user.email "$commitAuthorEmail" git config credential.helper "store --file=.git/credentials" -echo "https://${MATERIAL2_BUILDS_TOKEN}:@github.com" > .git/credentials +echo "https://${SNAPSHOT_BUILDS_GITHUB_TOKEN}:@github.com" > .git/credentials echo "Credentials for docs-content repository are now set up. Publishing.."