Skip to content

build: use a more appropriate naming for the snapshot deploy GitHub token #26368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/deploy/publish-build-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.."

Expand Down
6 changes: 3 additions & 3 deletions scripts/deploy/publish-docs-content.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.."

Expand Down