dart-sass/tool/deploy.sh
2018-02-03 19:41:36 -08:00

39 lines
1.0 KiB
Bash
Executable File

#!/bin/bash -e
# Copyright 2018 Google Inc. Use of this source code is governed by an MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.
openssl aes-256-cbc -K $encrypted_d18df560dfb2_key -iv $encrypted_d18df560dfb2_iv -in tool/encrypted/credentials.tar.enc \
-out credentials.tar -d
mkdir -p ~/.pub-cache
tar xfO credentials.tar npm > ~/.npmrc
tar xfO credentials.tar pub > ~/.pub-cache/credentials.json
tar xfO credentials.tar git > ~/.git-credentials
function travis_cmd() {
echo "\$ $@"
"$@"
}
travis_fold() {
local action=$1
local name=$2
echo -en "travis_fold:${action}:${name}\r"
}
travis_fold start npm
travis_cmd npm publish build/npm
travis_cmd npm publish build/npm-old
travis_fold end npm
travis_fold start pub
travis_cmd pub lish --force
travis_fold end pub
travis_fold start homebrew
git config --local user.name "Natalie Weizenbaum"
git config --local user.email "nweiz@google.com"
travis_cmd pub run grinder update_homebrew
travis_fold end homebrew