dart-sass/tool/deploy.sh
2018-03-27 16:55:51 -07:00

43 lines
1.1 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_d472b0f964cc_key -iv $encrypted_d472b0f964cc_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
function travis_cmd() {
echo "\$ $@"
"$@"
}
travis_fold() {
local action=$1
local name=$2
echo -en "travis_fold:${action}:${name}\r"
}
travis_fold start github
travis_cmd pub run grinder github_release
travis_fold end github
travis_fold start npm
travis_cmd pub run grinder npm_release_package
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 "SassBot"
git config --local user.email "sass.bot.beep.boop@gmail.com"
travis_cmd pub run grinder update_homebrew
travis_fold end homebrew