Add password token back for Circle

Since we are not using SSH
This commit is contained in:
Joel Marcey 2018-01-03 17:00:25 -08:00 committed by GitHub
parent 3a2c801262
commit efaa792206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,9 +62,9 @@ jobs:
# Do not do this if we don't have the right org (facebook), or if this is just a pull request
command: |
if [[ $CIRCLE_PROJECT_USERNAME == "facebook" && -z $CI_PULL_REQUEST && -z $CIRCLE_PR_USERNAME ]]; then
git config --global user.email "docusaurus@users.noreply.github.com"
git config --global user.email "docusaurus-bot@users.noreply.github.com"
git config --global user.name "Website Deployment Script"
echo "machine github.com login docusaurus-bot" > ~/.netrc
echo "machine github.com login docusaurus-bot password $DOCUSAURUS_PUBLISH_TOKEN" > ~/.netrc
fi
- run:
name: Deploy Website