diff --git a/ci/azure-deploy-docs.yml b/ci/azure-deploy-docs.yml index 40da134..13ae055 100644 --- a/ci/azure-deploy-docs.yml +++ b/ci/azure-deploy-docs.yml @@ -21,13 +21,13 @@ jobs: - script: | set -e + git --version ls -la git init git config user.name 'Deployment Bot (from Azure Pipelines)' git config user.email 'deploy@tower-rs.com' - echo 'machine github.com' > ~/.netrc - echo 'login carllerche' >> ~/.netrc - echo 'password $(GITHUB_TOKEN)' >> ~/.netrc + git config --global credential.helper 'store --file ~/.my-credentials' + printf "protocol=https\nhost=github.com\nusername=carllerche\npassword=%s\n\n" "$GITHUB_TOKEN" | git credential-store --file ~/.my-credentials store git remote add origin https://github.com/tower-rs/tower git checkout -b gh-pages git add .