From ff532f9710dc35749fa378d6c1b8e115653fd497 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Tue, 17 Apr 2018 15:44:29 -0700 Subject: [PATCH] Use Travis auth info to deploy to Homebrew (#296) --- tool/grind.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tool/grind.dart b/tool/grind.dart index 66e6e2eb..41fba2fa 100644 --- a/tool/grind.dart +++ b/tool/grind.dart @@ -530,8 +530,14 @@ update_homebrew() async { ], workingDirectory: "build/homebrew-sass"); + var username = _environment('GITHUB_USER'); + var password = _environment('GITHUB_AUTH'); await runAsync("git", - arguments: ["push"], workingDirectory: "build/homebrew-sass"); + arguments: [ + "push", + "https://$username:$password@github.com/sass/homebrew-sass.git" + ], + workingDirectory: "build/homebrew-sass"); } @Task('Release the current version as to GitHub.')