dart-sass/tool/deploy.sh

49 lines
1.3 KiB
Bash
Raw Normal View History

#!/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-02-04 04:15:10 +01:00
openssl aes-256-cbc -K $encrypted_d18df560dfb2_key -iv $encrypted_d18df560dfb2_iv -in tool/encrypted/credentials.tar.enc \
-out credentials.tar -d
2018-02-04 04:02:46 +01:00
mkdir -p ~/.pub-cache
2018-02-04 04:15:10 +01:00
tar xfO credentials.tar npm > ~/.npmrc
tar xfO credentials.tar pub > ~/.pub-cache/credentials.json
2018-03-03 03:41:36 +01:00
tar xfO credentials.tar git > ~/.netrc
tar xfO credentials.tar choco > choco
2018-02-04 03:47:56 +01:00
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
2018-02-04 03:47:56 +01:00
travis_fold start npm
travis_cmd pub run grinder npm_release_package
2018-02-04 03:47:56 +01:00
travis_cmd npm publish build/npm
travis_cmd npm publish build/npm-old
travis_fold end npm
travis_fold start pub
2018-02-04 04:41:36 +01:00
travis_cmd pub lish --force
2018-02-04 03:47:56 +01:00
travis_fold end pub
travis_fold start homebrew
2018-03-06 01:59:22 +01:00
git config --local user.name "SassBot"
git config --local user.email "sass.bot.beep.boop@gmail.com"
2018-02-04 04:41:36 +01:00
travis_cmd pub run grinder update_homebrew
2018-02-04 03:47:56 +01:00
travis_fold end homebrew
2018-02-05 01:12:33 +01:00
travis_fold start chocolatey
travis_cmd pub run grinder update_chocolatey
travis_fold end chocolatey