summaryrefslogtreecommitdiff
path: root/minionlivesmatter/templates/assets/bootstrap/grunt/upload-preview.sh
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-25 13:13:57 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-25 13:13:57 +0100
commitd25ff2bddd44b9dac1ceb248424109d1782dd211 (patch)
tree34fcfd824a1a72e7b4d431b688adcea532b62180 /minionlivesmatter/templates/assets/bootstrap/grunt/upload-preview.sh
parenta2cbdd1b88ac723e5e441c0a3c22636f0a8c4dfd (diff)
downloadmeta-d25ff2bddd44b9dac1ceb248424109d1782dd211.tar.gz
meta-d25ff2bddd44b9dac1ceb248424109d1782dd211.zip
add minionlivesmatter as submodule
Diffstat (limited to 'minionlivesmatter/templates/assets/bootstrap/grunt/upload-preview.sh')
-rwxr-xr-xminionlivesmatter/templates/assets/bootstrap/grunt/upload-preview.sh27
1 files changed, 0 insertions, 27 deletions
diff --git a/minionlivesmatter/templates/assets/bootstrap/grunt/upload-preview.sh b/minionlivesmatter/templates/assets/bootstrap/grunt/upload-preview.sh
deleted file mode 100755
index 08e7fa2..0000000
--- a/minionlivesmatter/templates/assets/bootstrap/grunt/upload-preview.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-# Upload built docs to preview.twbsapps.com
-
-if [ "$TRAVIS_REPO_SLUG" != twbs-savage/bootstrap ]; then exit 0; fi
-
-# Add build metadata to version
-sed -i "/^current_version:/ s/\$/+pr.${TRAVIS_COMMIT}/" _config.yml
-# Fix URLs since the site's root is now a subdirectory
-bundle exec jekyll build --destination "$TRAVIS_COMMIT" --baseurl "/c/${TRAVIS_COMMIT}"
-
-# Install gcloud & gsutil
-GSUTIL_VERSION=$(gsutil version | cut -d ' ' -f 3)
-if [ ! -d "${HOME}/google-cloud-sdk" ] || [ "${GSUTIL_VERSION}" != '4.19' ]; then
- rm -rf "${HOME}/google-cloud-sdk" # Kill Travis' outdated non-updateable preinstalled version
- echo 'Installing google-cloud-sdk...'
- export CLOUDSDK_CORE_DISABLE_PROMPTS=1
- time (curl -S -s https://sdk.cloud.google.com | bash &>/dev/null)
- echo 'Done.'
-fi
-source "${HOME}/google-cloud-sdk/path.bash.inc"
-
-openssl aes-256-cbc -K $encrypted_2b749c8e6327_key -iv $encrypted_2b749c8e6327_iv -in grunt/gcp-key.json.enc -out grunt/gcp-key.json -d
-gcloud auth activate-service-account "$GCP_SERVICE_ACCOUNT" --key-file grunt/gcp-key.json &> /dev/null || (echo 'GCP login failed!'; exit 1)
-
-echo "Uploading to http://preview.twbsapps.com/c/${TRAVIS_COMMIT} ..."
-time gsutil -q -m cp -z html,css,js,svg -r "./${TRAVIS_COMMIT}" gs://preview.twbsapps.com/c/
-echo 'Done.'