2018-02-03 17:02:27 -08:00
|
|
|
#!/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.
|
|
|
|
|
2018-03-27 16:55:28 -07:00
|
|
|
openssl aes-256-cbc -K $encrypted_d472b0f964cc_key -iv $encrypted_d472b0f964cc_iv -in tool/encrypted/credentials.tar.enc \
|
2018-02-03 19:15:10 -08:00
|
|
|
-out credentials.tar -d
|
2018-02-03 19:02:46 -08:00
|
|
|
|
2018-02-03 17:02:27 -08:00
|
|
|
mkdir -p ~/.pub-cache
|
2018-02-03 19:15:10 -08:00
|
|
|
tar xfO credentials.tar npm > ~/.npmrc
|
|
|
|
tar xfO credentials.tar pub > ~/.pub-cache/credentials.json
|
2018-02-03 18:47:56 -08:00
|
|
|
|
|
|
|
function travis_cmd() {
|
|
|
|
echo "\$ $@"
|
|
|
|
"$@"
|
|
|
|
}
|
|
|
|
|
|
|
|
travis_fold() {
|
|
|
|
local action=$1
|
|
|
|
local name=$2
|
|
|
|
echo -en "travis_fold:${action}:${name}\r"
|
|
|
|
}
|
|
|
|
|
2018-02-03 22:35:20 -08:00
|
|
|
travis_fold start github
|
|
|
|
travis_cmd pub run grinder github_release
|
|
|
|
travis_fold end github
|
|
|
|
|
2018-02-03 18:47:56 -08:00
|
|
|
travis_fold start npm
|
2018-03-09 17:16:00 -08:00
|
|
|
travis_cmd pub run grinder npm_release_package
|
2018-02-03 18:47:56 -08:00
|
|
|
travis_cmd npm publish build/npm
|
|
|
|
travis_cmd npm publish build/npm-old
|
|
|
|
travis_fold end npm
|
|
|
|
|
|
|
|
travis_fold start pub
|
2018-02-03 19:41:36 -08:00
|
|
|
travis_cmd pub lish --force
|
2018-02-03 18:47:56 -08:00
|
|
|
travis_fold end pub
|
|
|
|
|
|
|
|
travis_fold start homebrew
|
2018-03-05 16:59:22 -08:00
|
|
|
git config --local user.name "SassBot"
|
|
|
|
git config --local user.email "sass.bot.beep.boop@gmail.com"
|
2018-02-03 19:41:36 -08:00
|
|
|
travis_cmd pub run grinder update_homebrew
|
2018-02-03 18:47:56 -08:00
|
|
|
travis_fold end homebrew
|