Use Travis auth info to deploy to Homebrew (#296)

This commit is contained in:
Natalie Weizenbaum 2018-04-17 15:44:29 -07:00 committed by GitHub
parent 6fd0f6d6e3
commit ff532f9710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.')